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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 106.2 kB / 18.25 MB, free: 4.785 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.001617/0.001617, allocations: 195.3 kB / 19.18 MB, free: 3.863 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.285/1.285, allocations: 205.1 MB / 225 MB, free: 12.31 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.00113/0.00113, allocations: 51.92 kB / 281.3 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07545/0.07659, allocations: 46.62 MB / 328 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008876/0.08551, allocations: 8.177 MB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004207/0.08975, allocations: 2.724 MB / 338.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006461/0.09046, allocations: 23.94 kB / 338.9 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.09174, allocations: 0.5519 MB / 339.4 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009939/0.09275, allocations: 484.2 kB / 339.9 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004544/0.09322, allocations: 263.6 kB / 340.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.09452, allocations: 1.498 MB / 341.7 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007217/0.09526, allocations: 0.5886 MB / 342.2 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005888/0.09585, allocations: 0.5564 MB / 342.8 MB, free: 5.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000603/0.09647, allocations: 0.6144 MB / 343.4 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.09664, allocations: 140 kB / 343.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003192/0.09697, allocations: 180 kB / 343.7 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.09717, allocations: 286.9 kB / 344 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005652/0.09775, allocations: 0.6804 MB / 344.7 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.09922, allocations: 1.729 MB / 346.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.09924, allocations: 0 / 346.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09925, allocations: 4 kB / 346.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.09927, allocations: 0 / 346.4 MB, free: 1.895 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002439/0.1017, allocations: 1.472 MB / 347.9 MB, free: 376 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1018, allocations: 15.89 kB / 347.9 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006333/0.1024, allocations: 195.3 kB / 348.1 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1034, allocations: 0.7463 MB / 348.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.1036, allocations: 70 kB / 348.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.1037, allocations: 103.9 kB / 349 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.1052, allocations: 0.9503 MB / 350 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.1052, allocations: 0 / 350 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.1053, allocations: 44 kB / 350 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.1053, allocations: 24 kB / 350 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1066, allocations: 0.6481 MB / 350.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004845/0.1114, allocations: 3.961 MB / 354.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006806/0.1121, allocations: 443.8 kB / 355.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005716/0.1127, allocations: 268.5 kB / 355.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.1128, allocations: 8 kB / 355.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.1128, allocations: 42.55 kB / 355.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.204e-06/0.1128, allocations: 0 / 355.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002911/0.1157, allocations: 1.544 MB / 356.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.1158, allocations: 81.11 kB / 357 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.1168, allocations: 0.8333 MB / 357.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.728e-05/0.1169, allocations: 33.7 kB / 357.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.1173, allocations: 0.5643 MB / 358.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1174, allocations: 165.6 kB / 358.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.1176, allocations: 130.5 kB / 358.7 MB, free: 5.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1177, allocations: 334 kB / 359.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.1181, allocations: 177.9 kB / 359.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005241/0.1186, allocations: 467.6 kB / 359.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00093/0.1195, allocations: 0.6835 MB / 360.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1195, allocations: 0 / 360.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001369/0.1209, allocations: 0.7865 MB / 361.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.121, allocations: 8 kB / 361.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.121, allocations: 12 kB / 361.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002724/0.1212, allocations: 85.94 kB / 361.3 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005252/0.1218, allocations: 159.7 kB / 361.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.1241, allocations: 3.149 MB / 364.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.1247, allocations: 39.89 kB / 364.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.1248, allocations: 35.94 kB / 364.6 MB, free: 14.56 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 (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.0003623/0.1251, allocations: 269.7 kB / 364.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.1253, allocations: 90.91 kB / 365 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009735/0.1262, allocations: 0.4951 MB / 365.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1263, allocations: 12 kB / 365.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1263, allocations: 0 / 365.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1263, allocations: 3.984 kB / 365.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.1284, allocations: 1.465 MB / 367 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.1284, allocations: 4 kB / 367 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.1287, allocations: 84.05 kB / 367.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/0.1289, allocations: 69.67 kB / 367.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.129, allocations: 12 kB / 367.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.1312, allocations: 3.122 MB / 370.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1312, allocations: 4 kB / 370.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.1326, allocations: 0.7971 MB / 371.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.1328, allocations: 200 kB / 371.3 MB, free: 7.488 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.1329, allocations: 15.94 kB / 371.3 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.1334, allocations: 31.92 kB / 371.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/0.1335, allocations: 31.95 kB / 371.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.1335, allocations: 19.98 kB / 371.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007411/0.1343, allocations: 0.5693 MB / 371.9 MB, free: 6.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.1343, allocations: 0 / 371.9 MB, free: 6.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00083/0.1351, allocations: 211.9 kB / 372.1 MB, free: 6.617 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 (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.0002196/0.1353, allocations: 119.2 kB / 372.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.1366, allocations: 0.7174 MB / 373 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1366, allocations: 0 / 373 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006662/0.1373, allocations: 454.1 kB / 373.4 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.1384, allocations: 232.3 kB / 373.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.1412, allocations: 1.79 MB / 375.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005963/0.1418, allocations: 1.013 MB / 376.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.142, allocations: 67.42 kB / 376.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of SimCode: time 1.573e-06/0.142, allocations: 0 / 376.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of Templates: time 0.1471/0.2891, allocations: 21.29 MB / 397.8 MB, free: 43.81 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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