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.001451/0.001451, allocations: 106.4 kB / 17.15 MB, free: 6.309 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.001896/0.001896, allocations: 198 kB / 18.07 MB, free: 5.41 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.879/1.879, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001437/0.001437, allocations: 43.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1387, allocations: 46.63 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01118/0.15, allocations: 8.148 MB / 334.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005431/0.1555, allocations: 2.705 MB / 337.5 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.1566, allocations: 23.94 kB / 337.5 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.1582, allocations: 490.1 kB / 338 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001297/0.1595, allocations: 421.1 kB / 338.4 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.16, allocations: 227.8 kB / 338.6 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001664/0.1617, allocations: 1.424 MB / 340 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008401/0.1625, allocations: 0.5007 MB / 340.5 MB, free: 6.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000844/0.1634, allocations: 0.5055 MB / 341 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006395/0.1641, allocations: 0.5831 MB / 341.6 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1642, allocations: 84 kB / 341.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/0.1646, allocations: 128 kB / 341.8 MB, free: 5.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.1648, allocations: 230.9 kB / 342 MB, free: 5.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006014/0.1654, allocations: 0.6257 MB / 342.7 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.1668, allocations: 1.682 MB / 344.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1668, allocations: 0 / 344.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1669, allocations: 0 / 344.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.1669, allocations: 0 / 344.3 MB, free: 3.035 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.002473/0.1694, allocations: 1.476 MB / 345.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1694, allocations: 8.031 kB / 345.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006846/0.1701, allocations: 191.3 kB / 346 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.1713, allocations: 0.7541 MB / 346.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.1713, allocations: 74 kB / 346.8 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.1715, allocations: 99.91 kB / 346.9 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.1731, allocations: 0.9426 MB / 347.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.1731, allocations: 7.938 kB / 347.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.866e-05/0.1732, allocations: 44 kB / 347.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.1732, allocations: 27.98 kB / 348 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.1745, allocations: 0.652 MB / 348.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.1797, allocations: 3.945 MB / 352.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006953/0.1804, allocations: 455.8 kB / 353 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005748/0.181, allocations: 272.6 kB / 353.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.181, allocations: 7.938 kB / 353.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.1811, allocations: 42.56 kB / 353.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.015e-06/0.1811, allocations: 0 / 353.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002976/0.1841, allocations: 1.541 MB / 354.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.1841, allocations: 89.11 kB / 355 MB, free: 7.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.1853, allocations: 0.8333 MB / 355.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.1853, allocations: 29.7 kB / 355.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.186, allocations: 0.5681 MB / 356.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.1861, allocations: 165.7 kB / 356.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/0.1864, allocations: 130.5 kB / 356.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002545/0.1867, allocations: 334 kB / 357 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.1872, allocations: 177.9 kB / 357.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006561/0.1878, allocations: 467.6 kB / 357.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.1889, allocations: 0.6796 MB / 358.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.1889, allocations: 8 kB / 358.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001568/0.1905, allocations: 0.7865 MB / 359.1 MB, free: 3.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.1905, allocations: 12 kB / 359.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.1906, allocations: 8 kB / 359.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003556/0.1909, allocations: 81.92 kB / 359.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.1915, allocations: 159.7 kB / 359.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002782/0.1943, allocations: 2.88 MB / 362.2 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006845/0.195, allocations: 35.89 kB / 362.3 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-05/0.1951, allocations: 35.98 kB / 362.3 MB, free: 15.98 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.0005088/0.1956, allocations: 265.6 kB / 362.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.1957, allocations: 86.97 kB / 362.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.1968, allocations: 0.4913 MB / 363.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1968, allocations: 8 kB / 363.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1968, allocations: 3.938 kB / 363.2 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.1968, allocations: 4.078 kB / 363.2 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002546/0.1994, allocations: 1.477 MB / 364.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.1994, allocations: 3.938 kB / 364.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.1997, allocations: 80.11 kB / 364.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002127/0.2, allocations: 77.55 kB / 364.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.2, allocations: 8 kB / 364.8 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/0.2024, allocations: 2.848 MB / 367.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2025, allocations: 48 / 367.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.204, allocations: 0.7972 MB / 368.4 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.2044, allocations: 207.9 kB / 368.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.2045, allocations: 15.94 kB / 368.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.2049, allocations: 31.97 kB / 368.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.205, allocations: 31.95 kB / 368.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.2051, allocations: 15.94 kB / 368.7 MB, free: 9.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000946/0.206, allocations: 0.5693 MB / 369.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.206, allocations: 4 kB / 369.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001042/0.2071, allocations: 212 kB / 369.5 MB, free: 8.316 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.0003006/0.2074, allocations: 119.2 kB / 369.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.209, allocations: 0.6975 MB / 370.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.209, allocations: 4 kB / 370.3 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007636/0.2098, allocations: 458 kB / 370.8 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.2111, allocations: 215.6 kB / 371 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.2149, allocations: 2.178 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/0.2157, allocations: 1.009 MB / 374.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004951/0.2162, allocations: 107.3 kB / 374.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.2163, allocations: 59.42 kB / 374.3 MB, free: 3.352 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2163, allocations: 0 / 374.3 MB, free: 3.352 MB / 318.1 MB Notification: Performance of Templates: time 0.2433/0.4596, allocations: 10.16 MB / 384.5 MB, free: 50.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/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