Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.1 MB / 223.7 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009151/0.0009151, allocations: 107.8 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008761/0.0008762, allocations: 39.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2141, allocations: 46.63 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006807/0.2209, allocations: 8.137 MB / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.2244, allocations: 2.707 MB / 384.7 MB, free: 37.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008493/0.2252, allocations: 24.75 kB / 384.7 MB, free: 37.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.2265, allocations: 0.4985 MB / 385.2 MB, free: 36.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007985/0.2273, allocations: 416.2 kB / 385.6 MB, free: 36.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.2276, allocations: 231.8 kB / 385.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.2287, allocations: 1.436 MB / 387.3 MB, free: 35.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006253/0.2293, allocations: 0.5022 MB / 387.8 MB, free: 35.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000546/0.2299, allocations: 0.5091 MB / 388.3 MB, free: 34.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004937/0.2304, allocations: 0.5809 MB / 388.9 MB, free: 34.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.2305, allocations: 88.44 kB / 388.9 MB, free: 34.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002508/0.2308, allocations: 124 kB / 389.1 MB, free: 34.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.2309, allocations: 234.9 kB / 389.3 MB, free: 33.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.2313, allocations: 0.6179 MB / 389.9 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009829/0.2323, allocations: 1.682 MB / 391.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2323, allocations: 4 kB / 391.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2323, allocations: 4 kB / 391.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2323, allocations: 0 / 391.6 MB, free: 31.66 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001885/0.2342, allocations: 1.476 MB / 393.1 MB, free: 30.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2342, allocations: 12.03 kB / 393.1 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005172/0.2348, allocations: 191.3 kB / 393.3 MB, free: 29.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.2356, allocations: 0.7425 MB / 394 MB, free: 29.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.2356, allocations: 74 kB / 394.1 MB, free: 29.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.795e-05/0.2357, allocations: 107.9 kB / 394.2 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2369, allocations: 0.9424 MB / 395.1 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.2369, allocations: 0 / 395.1 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/0.237, allocations: 47.94 kB / 395.2 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.237, allocations: 24 kB / 395.2 MB, free: 27.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009702/0.238, allocations: 0.6442 MB / 395.9 MB, free: 27.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.2416, allocations: 3.965 MB / 399.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.2421, allocations: 447.8 kB / 400.3 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004568/0.2426, allocations: 265.6 kB / 400.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.2427, allocations: 8 kB / 400.5 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.291e-05/0.2427, allocations: 38.5 kB / 400.6 MB, free: 22.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.413e-06/0.2427, allocations: 4 kB / 400.6 MB, free: 22.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002134/0.2448, allocations: 1.552 MB / 402.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.2449, allocations: 81.11 kB / 402.2 MB, free: 20.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007624/0.2456, allocations: 0.8372 MB / 403 MB, free: 19.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.2457, allocations: 33.7 kB / 403.1 MB, free: 19.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.2459, allocations: 0.5643 MB / 403.6 MB, free: 19.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.344e-05/0.246, allocations: 161.7 kB / 403.8 MB, free: 18.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.2461, allocations: 130.5 kB / 403.9 MB, free: 18.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.728e-05/0.2461, allocations: 333.9 kB / 404.2 MB, free: 18.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.2464, allocations: 177.9 kB / 404.4 MB, free: 18.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.2468, allocations: 475.6 kB / 404.9 MB, free: 17.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.2475, allocations: 0.6758 MB / 405.6 MB, free: 16.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2475, allocations: 0 / 405.6 MB, free: 16.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001006/0.2485, allocations: 0.7943 MB / 406.4 MB, free: 16.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2485, allocations: 8 kB / 406.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2485, allocations: 12 kB / 406.4 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002127/0.2488, allocations: 77.67 kB / 406.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.2492, allocations: 167.9 kB / 406.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.2507, allocations: 2.88 MB / 409.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.2511, allocations: 39.89 kB / 409.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.2512, allocations: 32 kB / 409.6 MB, free: 12.6 MB / 298.7 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 (85): * Single equations (assignments): 83 * 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.0002449/0.2514, allocations: 261.5 kB / 409.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.925e-05/0.2515, allocations: 82.97 kB / 409.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007638/0.2523, allocations: 0.4991 MB / 410.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2523, allocations: 4 kB / 410.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2523, allocations: 4 kB / 410.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.2523, allocations: 7.984 kB / 410.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.2539, allocations: 1.463 MB / 411.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2539, allocations: 7.938 kB / 411.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.2542, allocations: 75.89 kB / 412 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.2544, allocations: 65.91 kB / 412 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.2544, allocations: 19.92 kB / 412 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.2557, allocations: 2.856 MB / 414.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2557, allocations: 7.969 kB / 414.9 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005863/0.2616, allocations: 6.674 MB / 421.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.2618, allocations: 204 kB / 421.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.2619, allocations: 8 kB / 421.8 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003834/0.2623, allocations: 32.11 kB / 421.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.2624, allocations: 35.89 kB / 421.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/0.2624, allocations: 23.92 kB / 421.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006809/0.2631, allocations: 0.5693 MB / 422.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2631, allocations: 0 / 422.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009322/0.2641, allocations: 300 kB / 422.7 MB, free: 14.56 MB / 314.7 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 (39): * Single equations (assignments): 37 * 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.0001887/0.2643, allocations: 123.1 kB / 422.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2654, allocations: 0.6979 MB / 423.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2654, allocations: 0 / 423.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.2661, allocations: 454.5 kB / 424 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.2671, allocations: 220.5 kB / 424.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.2703, allocations: 2.723 MB / 426.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.2709, allocations: 1.028 MB / 428 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.2713, allocations: 107.3 kB / 428.1 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.2714, allocations: 55.44 kB / 428.1 MB, free: 9.012 MB / 314.7 MB Notification: Performance of SimCode: time 1.533e-06/0.2714, allocations: 4 kB / 428.1 MB, free: 9.008 MB / 314.7 MB Notification: Performance of Templates: time 0.01812/0.2896, allocations: 11.39 MB / 439.5 MB, free: 13.63 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches