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.00138/0.00138, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001591/0.001591, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001775, allocations: 47.64 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1066, allocations: 49.44 MB / 349.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008711/0.1153, allocations: 8.19 MB / 357.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00456/0.1199, allocations: 2.657 MB / 360.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009158/0.1209, allocations: 23.94 kB / 360.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.123, allocations: 0.498 MB / 360.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002228/0.1252, allocations: 421.1 kB / 361.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008039/0.126, allocations: 227.8 kB / 361.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.1282, allocations: 1.503 MB / 363.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007406/0.1289, allocations: 0.5884 MB / 363.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007311/0.1297, allocations: 0.5602 MB / 364.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006975/0.1304, allocations: 0.6144 MB / 364.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.1306, allocations: 140 kB / 365 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003878/0.131, allocations: 184 kB / 365.2 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.1312, allocations: 286.9 kB / 365.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005476/0.1317, allocations: 0.6765 MB / 366.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001495/0.1332, allocations: 1.721 MB / 367.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1333, allocations: 0 / 367.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1333, allocations: 4 kB / 367.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.1333, allocations: 0 / 367.8 MB, free: 2.398 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.002359/0.1357, allocations: 1.476 MB / 369.3 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1357, allocations: 19.89 kB / 369.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006488/0.1364, allocations: 187.3 kB / 369.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1727/0.3091, allocations: 0.7486 MB / 370.3 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.3092, allocations: 73.91 kB / 370.3 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.3094, allocations: 98.72 kB / 370.4 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3113, allocations: 0.9446 MB / 371.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.3113, allocations: 10.2 kB / 371.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.587e-05/0.3114, allocations: 40.97 kB / 371.4 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.732e-05/0.3114, allocations: 24.56 kB / 371.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.3127, allocations: 0.6505 MB / 372.1 MB, free: 24.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004735/0.3174, allocations: 3.951 MB / 376.1 MB, free: 22.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006464/0.3181, allocations: 441.4 kB / 376.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005404/0.3187, allocations: 269.7 kB / 376.8 MB, free: 22.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.3187, allocations: 7.5 kB / 376.8 MB, free: 22.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.3187, allocations: 37.31 kB / 376.8 MB, free: 21.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.3187, allocations: 0 / 376.8 MB, free: 21.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002714/0.3215, allocations: 1.543 MB / 378.3 MB, free: 20.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.3215, allocations: 82.17 kB / 378.4 MB, free: 20.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3226, allocations: 0.8424 MB / 379.3 MB, free: 20.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.3226, allocations: 35.2 kB / 379.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.323, allocations: 0.5692 MB / 379.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.555e-05/0.3231, allocations: 161.5 kB / 380 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.3232, allocations: 130.8 kB / 380.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.3233, allocations: 337.2 kB / 380.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.3237, allocations: 170.4 kB / 380.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004575/0.3241, allocations: 477.4 kB / 381.1 MB, free: 19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.3249, allocations: 0.6781 MB / 381.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3249, allocations: 2.656 kB / 381.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001234/0.3262, allocations: 0.7853 MB / 382.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.3262, allocations: 9.594 kB / 382.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.3262, allocations: 14.7 kB / 382.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002634/0.3265, allocations: 85.38 kB / 382.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.327, allocations: 157.9 kB / 382.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.3287, allocations: 3.142 MB / 386 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.3293, allocations: 42.77 kB / 386 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.728e-05/0.3293, allocations: 41.75 kB / 386.1 MB, free: 14.91 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.0003454/0.3297, allocations: 261.7 kB / 386.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.3298, allocations: 86.11 kB / 386.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009084/0.3307, allocations: 0.5004 MB / 386.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3307, allocations: 4.188 kB / 386.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3307, allocations: 2.109 kB / 386.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3308, allocations: 3.484 kB / 386.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.3329, allocations: 1.475 MB / 388.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3329, allocations: 3.656 kB / 388.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.3332, allocations: 74.22 kB / 388.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.3334, allocations: 75.56 kB / 388.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.3335, allocations: 9.797 kB / 388.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/0.3351, allocations: 3.124 MB / 391.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3351, allocations: 6.297 kB / 391.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.3363, allocations: 0.7958 MB / 392.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.3365, allocations: 197.7 kB / 392.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3367, allocations: 20.55 kB / 392.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004228/0.3371, allocations: 31.88 kB / 392.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.485e-05/0.3372, allocations: 36.98 kB / 392.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.3372, allocations: 10.03 kB / 392.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007165/0.3379, allocations: 0.5728 MB / 393.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3379, allocations: 1.094 kB / 393.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009768/0.3389, allocations: 212.4 kB / 393.5 MB, free: 9.516 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.0001958/0.3391, allocations: 127.9 kB / 393.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3404, allocations: 0.7203 MB / 394.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.3404, allocations: 5.312 kB / 394.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.341, allocations: 451.2 kB / 394.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.3421, allocations: 232.7 kB / 395.1 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.3448, allocations: 2.177 MB / 397.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.3452, allocations: 1.005 MB / 398.2 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000478/0.3457, allocations: 108.4 kB / 398.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.3459, allocations: 62.7 kB / 398.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3459, allocations: 1.406 kB / 398.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of Templates: time 0.01847/0.3644, allocations: 10.59 MB / 409 MB, free: 13.49 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/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