Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001121/0.001121, allocations: 105.5 kB / 18.35 MB, free: 4.762 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.001221/0.001221, allocations: 192 kB / 19.29 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 47.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09772, allocations: 46.63 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009472/0.1072, allocations: 8.032 MB / 336.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004952/0.1122, allocations: 2.662 MB / 339.4 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.1135, allocations: 35.81 kB / 339.5 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.1152, allocations: 0.548 MB / 340 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.1168, allocations: 468.3 kB / 340.5 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006624/0.1174, allocations: 251.7 kB / 340.7 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.1192, allocations: 1.483 MB / 342.2 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007823/0.12, allocations: 0.5846 MB / 342.8 MB, free: 5.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007544/0.1207, allocations: 0.5524 MB / 343.3 MB, free: 5.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008096/0.1215, allocations: 0.595 MB / 343.9 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002195/0.1218, allocations: 140 kB / 344.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003895/0.1222, allocations: 180 kB / 344.2 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.1224, allocations: 279 kB / 344.5 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006518/0.123, allocations: 0.6609 MB / 345.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.1245, allocations: 1.717 MB / 346.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1245, allocations: 0 / 346.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1245, allocations: 0 / 346.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.1246, allocations: 0 / 346.9 MB, free: 1.516 MB / 286.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.002182/0.1267, allocations: 1.456 MB / 348.4 MB, free: 4 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.1268, allocations: 12.34 kB / 348.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006203/0.1274, allocations: 183.4 kB / 348.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.1286, allocations: 0.7417 MB / 349.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.395e-05/0.1286, allocations: 77.94 kB / 349.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1288, allocations: 96 kB / 349.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.1302, allocations: 0.9308 MB / 350.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.1302, allocations: 11.78 kB / 350.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.679e-05/0.1303, allocations: 44 kB / 350.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.1304, allocations: 24 kB / 350.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.1315, allocations: 0.6286 MB / 351.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.1363, allocations: 3.887 MB / 355 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.137, allocations: 440.6 kB / 355.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.1376, allocations: 257.4 kB / 355.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.1376, allocations: 4.328 kB / 355.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.1377, allocations: 38.88 kB / 355.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.835e-06/0.1377, allocations: 0 / 355.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002605/0.1403, allocations: 1.399 MB / 357.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.1404, allocations: 81.11 kB / 357.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.1414, allocations: 0.8252 MB / 358 MB, free: 5.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.1415, allocations: 37.7 kB / 358 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004548/0.142, allocations: 0.5565 MB / 358.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1421, allocations: 157.7 kB / 358.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.1423, allocations: 130.5 kB / 358.9 MB, free: 5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1424, allocations: 337.9 kB / 359.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.1428, allocations: 161.9 kB / 359.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.1433, allocations: 467.9 kB / 359.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.1441, allocations: 0.6585 MB / 360.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1441, allocations: 0 / 360.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001221/0.1453, allocations: 0.7626 MB / 361.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.1454, allocations: 8 kB / 361.3 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.1454, allocations: 16.38 kB / 361.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.1457, allocations: 89.61 kB / 361.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.1462, allocations: 147.8 kB / 361.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/0.1486, allocations: 3.153 MB / 364.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005407/0.1491, allocations: 31.98 kB / 364.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.1492, allocations: 32 kB / 364.7 MB, free: 14.59 MB / 318.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.0003688/0.1495, allocations: 272.3 kB / 365 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.1497, allocations: 86.88 kB / 365.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008614/0.1505, allocations: 0.4917 MB / 365.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1505, allocations: 4 kB / 365.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1506, allocations: 4 kB / 365.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1506, allocations: 3.984 kB / 365.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.1525, allocations: 1.423 MB / 367 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1525, allocations: 0 / 367 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.1528, allocations: 76.02 kB / 367.1 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.153, allocations: 77.84 kB / 367.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.153, allocations: 12 kB / 367.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.1552, allocations: 3.114 MB / 370.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.1552, allocations: 4.031 kB / 370.3 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1564, allocations: 0.7662 MB / 371 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.1566, allocations: 196 kB / 371.2 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-05/0.1567, allocations: 15.94 kB / 371.2 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.1572, allocations: 28.11 kB / 371.3 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.1573, allocations: 31.95 kB / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.1573, allocations: 16 kB / 371.3 MB, free: 7.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006942/0.158, allocations: 0.5654 MB / 371.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.158, allocations: 0 / 371.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.1588, allocations: 203.9 kB / 372.1 MB, free: 6.773 MB / 318.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.0001953/0.159, allocations: 127.2 kB / 372.2 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.1601, allocations: 0.6932 MB / 372.9 MB, free: 5.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1601, allocations: 0 / 372.9 MB, free: 5.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.1607, allocations: 439.1 kB / 373.3 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009501/0.1616, allocations: 228.3 kB / 373.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.1641, allocations: 1.695 MB / 375.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005427/0.1647, allocations: 1.009 MB / 376.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003215/0.165, allocations: 107.2 kB / 376.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1651, allocations: 63.42 kB / 376.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1651, allocations: 0 / 376.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of Templates: time 0.189/0.3542, allocations: 10.51 MB / 386.9 MB, free: 50.15 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches