Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.001061, allocations: 55.38 kB / 300.6 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08237/0.08345, allocations: 49.43 MB / 350.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009141/0.09264, allocations: 8.08 MB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.0965, allocations: 2.645 MB / 360.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.09698, allocations: 23.94 kB / 360.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001195/0.0982, allocations: 0.5441 MB / 361.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008253/0.09904, allocations: 468.3 kB / 361.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.09945, allocations: 255.7 kB / 362.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1007, allocations: 1.455 MB / 363.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007036/0.1014, allocations: 0.5883 MB / 364.1 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.1019, allocations: 0.5447 MB / 364.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005754/0.1025, allocations: 0.6028 MB / 365.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.1027, allocations: 140 kB / 365.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003075/0.103, allocations: 180 kB / 365.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.1032, allocations: 282.9 kB / 365.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005424/0.1038, allocations: 0.6532 MB / 366.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.1052, allocations: 1.701 MB / 368.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1052, allocations: 0 / 368.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1052, allocations: 0 / 368.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.1052, allocations: 0 / 368.2 MB, free: 2.176 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002154/0.1074, allocations: 1.46 MB / 369.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1074, allocations: 11.89 kB / 369.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006374/0.1081, allocations: 187.3 kB / 369.8 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1392/0.2472, allocations: 0.7209 MB / 370.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.385e-05/0.2473, allocations: 71.38 kB / 370.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.2475, allocations: 102.5 kB / 370.7 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.2491, allocations: 0.9337 MB / 371.7 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/0.2491, allocations: 1.688 kB / 371.7 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.2492, allocations: 42.94 kB / 371.7 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.2492, allocations: 24.44 kB / 371.7 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.2503, allocations: 0.6395 MB / 372.4 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004169/0.2545, allocations: 3.919 MB / 376.3 MB, free: 22.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.2551, allocations: 434.3 kB / 376.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005082/0.2556, allocations: 262.7 kB / 377 MB, free: 21.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.2557, allocations: 9.125 kB / 377 MB, free: 21.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2557, allocations: 37.39 kB / 377 MB, free: 21.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.853e-06/0.2557, allocations: 5.219 kB / 377 MB, free: 21.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002242/0.258, allocations: 1.403 MB / 378.4 MB, free: 20.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.258, allocations: 82.98 kB / 378.5 MB, free: 20.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009432/0.259, allocations: 0.8231 MB / 379.3 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.259, allocations: 32.38 kB / 379.4 MB, free: 20.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/0.2593, allocations: 0.5627 MB / 379.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.005e-05/0.2594, allocations: 159.7 kB / 380.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.2595, allocations: 127.6 kB / 380.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.941e-05/0.2596, allocations: 336.4 kB / 380.5 MB, free: 19.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.2599, allocations: 167.4 kB / 380.7 MB, free: 19.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004665/0.2604, allocations: 457.8 kB / 381.1 MB, free: 18.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007611/0.2612, allocations: 0.6588 MB / 381.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.2612, allocations: 2.906 kB / 381.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001246/0.2624, allocations: 0.771 MB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.2625, allocations: 12.69 kB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.2625, allocations: 10.23 kB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.2628, allocations: 85.06 kB / 382.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.2633, allocations: 151.1 kB / 382.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.265, allocations: 3.145 MB / 386 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.2655, allocations: 32.41 kB / 386 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.2656, allocations: 36.03 kB / 386 MB, free: 14.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002991/0.2659, allocations: 262.4 kB / 386.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.266, allocations: 88.69 kB / 386.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008674/0.2669, allocations: 488.8 kB / 386.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.2669, allocations: 3.75 kB / 386.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2669, allocations: 1.625 kB / 386.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2669, allocations: 8.172 kB / 386.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.2689, allocations: 1.432 MB / 388.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2689, allocations: 1.219 kB / 388.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003034/0.2692, allocations: 71.52 kB / 388.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/0.2694, allocations: 72.62 kB / 388.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.2695, allocations: 14.84 kB / 388.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.2711, allocations: 3.126 MB / 391.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.2711, allocations: 1.438 kB / 391.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.2723, allocations: 0.7711 MB / 392.4 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.2725, allocations: 198.3 kB / 392.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.892e-05/0.2726, allocations: 13.64 kB / 392.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.273, allocations: 23.48 kB / 392.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.2731, allocations: 41.44 kB / 392.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.2731, allocations: 12.19 kB / 392.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000656/0.2738, allocations: 0.5675 MB / 393.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2738, allocations: 0 / 393.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008089/0.2746, allocations: 203 kB / 393.4 MB, free: 9.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.2748, allocations: 122.4 kB / 393.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.276, allocations: 0.7006 MB / 394.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.276, allocations: 1.219 kB / 394.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005241/0.2765, allocations: 442.8 kB / 394.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.2776, allocations: 240.7 kB / 394.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.2798, allocations: 1.73 MB / 396.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.2802, allocations: 0.9989 MB / 397.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003776/0.2806, allocations: 107.3 kB / 397.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.2807, allocations: 58.84 kB / 397.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2807, allocations: 0 / 397.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of Templates: time 0.0178/0.2985, allocations: 10.52 MB / 408.3 MB, free: 14.25 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches