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.000963/0.0009627, allocations: 96.28 kB / 16.95 MB, free: 6.465 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.001196/0.001196, allocations: 183.6 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006336/0.0006339, allocations: 8 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1379, allocations: 47.58 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01009/0.148, allocations: 7.198 MB / 335.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007132/0.1552, allocations: 2.554 MB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/0.1572, allocations: 23.94 kB / 338.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002634/0.1598, allocations: 481.3 kB / 338.6 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00231/0.1622, allocations: 397 kB / 339 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1633, allocations: 159.8 kB / 339.2 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002594/0.1659, allocations: 1.354 MB / 340.5 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.167, allocations: 423.3 kB / 340.9 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001225/0.1683, allocations: 465.9 kB / 341.4 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.1694, allocations: 0.5015 MB / 341.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.1697, allocations: 68 kB / 341.9 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005817/0.1703, allocations: 104 kB / 342 MB, free: 6.312 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.1706, allocations: 203 kB / 342.2 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005083/0.1711, allocations: 261.1 kB / 342.5 MB, free: 5.852 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001771/0.1729, allocations: 1.367 MB / 343.9 MB, free: 4.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.1729, allocations: 4 kB / 343.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1729, allocations: 0 / 343.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.774e-05/0.173, allocations: 0 / 343.9 MB, free: 4.477 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.003107/0.1761, allocations: 1.297 MB / 345.2 MB, free: 3.125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1762, allocations: 15.95 kB / 345.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009176/0.1771, allocations: 194.3 kB / 345.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.1787, allocations: 0.7115 MB / 346.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.53e-05/0.1788, allocations: 74 kB / 346.2 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/0.1791, allocations: 99.91 kB / 346.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.1813, allocations: 0.9502 MB / 347.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/0.1814, allocations: 0 / 347.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.832e-05/0.1815, allocations: 44 kB / 347.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.1815, allocations: 24 kB / 347.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.1833, allocations: 0.6598 MB / 347.9 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007044/0.1903, allocations: 3.981 MB / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.1912, allocations: 440.5 kB / 352.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000645/0.1919, allocations: 272.7 kB / 352.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.72e-05/0.192, allocations: 8 kB / 352.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001186/0.1921, allocations: 38.5 kB / 352.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.116e-06/0.1921, allocations: 3.938 kB / 352.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003937/0.1961, allocations: 1.576 MB / 354.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.1961, allocations: 85.06 kB / 354.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.1979, allocations: 0.8255 MB / 355.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.1979, allocations: 37.64 kB / 355.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004693/0.1984, allocations: 0.5681 MB / 355.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.1985, allocations: 165.7 kB / 355.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.1986, allocations: 16 kB / 355.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1987, allocations: 333.9 kB / 356.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.1992, allocations: 177.9 kB / 356.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/0.1998, allocations: 479.6 kB / 356.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005147/0.2003, allocations: 251.8 kB / 357.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.2003, allocations: 4 kB / 357.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001634/0.202, allocations: 0.7946 MB / 357.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.202, allocations: 8 kB / 357.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.202, allocations: 12 kB / 358 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/0.2023, allocations: 81.94 kB / 358 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000524/0.2029, allocations: 159.7 kB / 358.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.2059, allocations: 2.872 MB / 361.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006782/0.2066, allocations: 47.88 kB / 361.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.2067, allocations: 36.06 kB / 361.1 MB, free: 2.242 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004995/0.2072, allocations: 265.5 kB / 361.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.2073, allocations: 82.97 kB / 361.5 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.2084, allocations: 0.5186 MB / 362 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.2084, allocations: 7.984 kB / 362 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2084, allocations: 4 kB / 362 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2084, allocations: 3.953 kB / 362 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.2107, allocations: 1.485 MB / 363.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.2108, allocations: 8.062 kB / 363.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.2111, allocations: 75.89 kB / 363.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001961/0.2113, allocations: 77.62 kB / 363.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.2113, allocations: 12.06 kB / 363.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.2136, allocations: 2.841 MB / 366.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.2137, allocations: 4 kB / 366.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.215, allocations: 0.82 MB / 367.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003937/0.2155, allocations: 196.2 kB / 367.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.2156, allocations: 16 kB / 367.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.2161, allocations: 39.97 kB / 367.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.96e-05/0.2162, allocations: 35.89 kB / 367.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.2162, allocations: 12 kB / 367.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009082/0.2171, allocations: 0.5654 MB / 368.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2171, allocations: 0 / 368.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009672/0.2181, allocations: 227.9 kB / 368.4 MB, free: 10.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002313/0.2184, allocations: 131 kB / 368.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.2198, allocations: 0.7128 MB / 369.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2198, allocations: 0 / 369.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.2205, allocations: 458.9 kB / 369.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.2216, allocations: 211.3 kB / 369.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.2252, allocations: 2.134 MB / 372 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009374/0.2261, allocations: 1.009 MB / 373.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005351/0.2267, allocations: 115.3 kB / 373.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.2268, allocations: 55.42 kB / 373.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2268, allocations: 4 kB / 373.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Templates: time 0.2084/0.4353, allocations: 9.781 MB / 383 MB, free: 48.83 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