Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001851/0.001851, allocations: 109.4 kB / 17.16 MB, free: 6.082 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.002556/0.002556, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.699/2.699, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 42.02 kB / 300.6 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1563, allocations: 49.45 MB / 350.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01855/0.1749, allocations: 8.179 MB / 358.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008257/0.1832, allocations: 2.673 MB / 360.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.1853, allocations: 27.94 kB / 360.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003266/0.1887, allocations: 494.1 kB / 361.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003246/0.192, allocations: 421.1 kB / 361.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.1934, allocations: 227.7 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003648/0.1971, allocations: 1.422 MB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001649/0.1988, allocations: 0.5007 MB / 364 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.2002, allocations: 0.5172 MB / 364.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.2017, allocations: 0.5754 MB / 365.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004714/0.2022, allocations: 84 kB / 365.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009514/0.2032, allocations: 124 kB / 365.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004614/0.2037, allocations: 230.9 kB / 365.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001676/0.2054, allocations: 0.6218 MB / 366.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.208, allocations: 1.407 MB / 367.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.208, allocations: 0 / 367.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.208, allocations: 3.938 kB / 367.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.752e-05/0.2081, allocations: 0 / 367.5 MB, free: 3.281 MB / 302.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.006348/0.2145, allocations: 1.476 MB / 369 MB, free: 1.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.749e-05/0.2146, allocations: 11.97 kB / 369 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001823/0.2165, allocations: 187.3 kB / 369.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002861/0.2193, allocations: 0.7541 MB / 370 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.2195, allocations: 74 kB / 370 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003479/0.2199, allocations: 103.9 kB / 370.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3465/0.5664, allocations: 0.9337 MB / 371.1 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.635e-05/0.5666, allocations: 6.234 kB / 371.1 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.5667, allocations: 39.62 kB / 371.1 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-05/0.5668, allocations: 24.28 kB / 371.1 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002993/0.5698, allocations: 0.6471 MB / 371.8 MB, free: 25.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01058/0.5804, allocations: 3.967 MB / 375.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.5817, allocations: 437.4 kB / 376.2 MB, free: 22.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.5828, allocations: 270 kB / 376.4 MB, free: 22.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/0.5829, allocations: 4.125 kB / 376.4 MB, free: 22.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.5829, allocations: 39.09 kB / 376.5 MB, free: 22.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 5.36e-06/0.583, allocations: 5.312 kB / 376.5 MB, free: 22.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005567/0.5885, allocations: 1.537 MB / 378 MB, free: 21.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.5887, allocations: 83.11 kB / 378.1 MB, free: 21.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.591, allocations: 0.8424 MB / 378.9 MB, free: 20.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.165e-05/0.5911, allocations: 35.02 kB / 379 MB, free: 20.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.5918, allocations: 0.5693 MB / 379.6 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002335/0.5921, allocations: 161.2 kB / 379.7 MB, free: 20.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003372/0.5924, allocations: 130.9 kB / 379.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5926, allocations: 337.2 kB / 380.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007012/0.5933, allocations: 171.2 kB / 380.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009657/0.5943, allocations: 475.9 kB / 380.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.5959, allocations: 0.6794 MB / 381.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.5959, allocations: 2.938 kB / 381.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002906/0.5989, allocations: 0.7824 MB / 382.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.5989, allocations: 9.016 kB / 382.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.868e-05/0.599, allocations: 14.28 kB / 382.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004734/0.5995, allocations: 85.56 kB / 382.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.6005, allocations: 157.1 kB / 382.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.6037, allocations: 2.876 MB / 385.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.6053, allocations: 37.72 kB / 385.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.6055, allocations: 36.94 kB / 385.5 MB, free: 15.5 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 (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.0008759/0.6064, allocations: 265.1 kB / 385.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003072/0.6067, allocations: 90.09 kB / 385.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.6086, allocations: 0.5056 MB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.6087, allocations: 4.625 kB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.6087, allocations: 1.156 kB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.6087, allocations: 2.484 kB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.6133, allocations: 1.478 MB / 387.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.6133, allocations: 2.125 kB / 387.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006609/0.614, allocations: 74.7 kB / 387.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.6144, allocations: 76.7 kB / 388 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.225e-05/0.6145, allocations: 8.797 kB / 388 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002968/0.6175, allocations: 2.855 MB / 390.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.6175, allocations: 6.375 kB / 390.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.6203, allocations: 0.8024 MB / 391.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008835/0.6213, allocations: 199.1 kB / 391.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004051/0.6217, allocations: 9.531 kB / 391.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.6227, allocations: 29.5 kB / 391.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.6229, allocations: 35.81 kB / 391.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/0.623, allocations: 19 kB / 391.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001849/0.6249, allocations: 0.571 MB / 392.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6249, allocations: 0 / 392.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.006401/0.6313, allocations: 209.5 kB / 392.7 MB, free: 10.38 MB / 302.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.0004633/0.6318, allocations: 134.9 kB / 392.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.6343, allocations: 0.6995 MB / 393.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.6343, allocations: 1.188 kB / 393.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.6355, allocations: 457.2 kB / 394 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/0.6384, allocations: 210.8 kB / 394.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.6494, allocations: 2.21 MB / 396.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009208/0.6504, allocations: 1.017 MB / 397.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/0.6509, allocations: 58.81 kB / 397.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6509, allocations: 0 / 397.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Templates: time 0.04981/0.7007, allocations: 21.27 MB / 418.7 MB, free: 4.445 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches