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.00145/0.00145, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001477/0.001477, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.572/1.572, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001284/0.001284, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1074, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01022/0.1177, allocations: 8.183 MB / 336.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006506/0.1243, allocations: 2.72 MB / 339.6 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.1267, allocations: 27.88 kB / 339.7 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002723/0.1294, allocations: 0.5481 MB / 340.2 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002965/0.1324, allocations: 484.2 kB / 340.7 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.1336, allocations: 263.6 kB / 340.9 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003114/0.1367, allocations: 1.498 MB / 342.4 MB, free: 5.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.1379, allocations: 0.5925 MB / 343 MB, free: 5.359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.1391, allocations: 0.5602 MB / 343.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008595/0.14, allocations: 0.6144 MB / 344.2 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002134/0.1402, allocations: 140 kB / 344.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004644/0.1407, allocations: 184 kB / 344.5 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002789/0.1409, allocations: 286.9 kB / 344.8 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007483/0.1417, allocations: 0.6765 MB / 345.5 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.1439, allocations: 1.744 MB / 347.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.084e-05/0.1439, allocations: 3.984 kB / 347.2 MB, free: 1.148 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1439, allocations: 4 kB / 347.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.014e-05/0.144, allocations: 0 / 347.2 MB, free: 1.145 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.003348/0.1473, allocations: 1.476 MB / 348.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.1474, allocations: 15.89 kB / 348.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000755/0.1482, allocations: 187.3 kB / 348.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.1497, allocations: 0.758 MB / 349.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.1497, allocations: 74 kB / 349.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.1499, allocations: 99.91 kB / 349.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.1515, allocations: 0.9502 MB / 350.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.1516, allocations: 8 kB / 350.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.157e-05/0.1517, allocations: 40 kB / 350.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.1517, allocations: 24 kB / 350.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.1531, allocations: 0.6597 MB / 351.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006054/0.1592, allocations: 3.903 MB / 355.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007694/0.16, allocations: 447.8 kB / 355.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005889/0.1606, allocations: 280.4 kB / 356.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.1607, allocations: 4 kB / 356.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1607, allocations: 34.56 kB / 356.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.254e-06/0.1607, allocations: 4 kB / 356.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003293/0.164, allocations: 1.536 MB / 357.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.1641, allocations: 81.11 kB / 357.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.1654, allocations: 0.841 MB / 358.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.1654, allocations: 33.7 kB / 358.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.1658, allocations: 0.5681 MB / 359.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.166, allocations: 165.6 kB / 359.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.1662, allocations: 130.5 kB / 359.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1663, allocations: 334 kB / 359.8 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.1667, allocations: 173.9 kB / 360 MB, free: 3.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/0.1673, allocations: 471.6 kB / 360.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.1683, allocations: 0.6758 MB / 361.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.1684, allocations: 4 kB / 361.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001556/0.1699, allocations: 0.7867 MB / 361.9 MB, free: 1.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.17, allocations: 11.98 kB / 361.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.17, allocations: 12 kB / 362 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/0.1703, allocations: 81.62 kB / 362 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005378/0.1708, allocations: 163.7 kB / 362.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.1734, allocations: 3.15 MB / 365.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.1741, allocations: 35.89 kB / 365.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.1742, allocations: 32 kB / 365.4 MB, free: 13.84 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.0004684/0.1747, allocations: 273.5 kB / 365.7 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.1748, allocations: 90.91 kB / 365.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.1759, allocations: 0.4914 MB / 366.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.176, allocations: 8 kB / 366.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.176, allocations: 4 kB / 366.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.176, allocations: 3.984 kB / 366.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002315/0.1783, allocations: 1.469 MB / 367.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1783, allocations: 4 kB / 367.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.1787, allocations: 76.11 kB / 367.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002374/0.1789, allocations: 69.69 kB / 367.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.179, allocations: 15.98 kB / 367.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/0.1813, allocations: 3.118 MB / 371 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.1814, allocations: 8.031 kB / 371 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.1827, allocations: 0.7943 MB / 371.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.1831, allocations: 204 kB / 372 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.764e-05/0.1832, allocations: 19.88 kB / 372 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.1837, allocations: 27.98 kB / 372.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.1838, allocations: 31.89 kB / 372.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.1838, allocations: 16 kB / 372.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007734/0.1846, allocations: 0.5732 MB / 372.7 MB, free: 6.098 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1846, allocations: 4 kB / 372.7 MB, free: 6.094 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009256/0.1855, allocations: 208 kB / 372.9 MB, free: 5.891 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.0002567/0.1858, allocations: 115.2 kB / 373 MB, free: 5.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.1872, allocations: 0.7062 MB / 373.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.1872, allocations: 4.062 kB / 373.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006849/0.1879, allocations: 456.6 kB / 374.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.189, allocations: 223.6 kB / 374.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.192, allocations: 1.726 MB / 376.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.1927, allocations: 1.016 MB / 377.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004263/0.1931, allocations: 103.3 kB / 377.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.1933, allocations: 55.44 kB / 377.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of SimCode: time 2.665e-06/0.1933, allocations: 4 kB / 377.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of Templates: time 0.215/0.4082, allocations: 10.71 MB / 388 MB, free: 49.53 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 -s gbode -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