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.001336/0.001336, allocations: 108.3 kB / 16.92 MB, free: 6.145 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.001019/0.001019, allocations: 187.4 kB / 17.85 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 1.34/1.34, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 46.83 kB / 300.6 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1127, allocations: 49.45 MB / 350.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009517/0.1223, allocations: 8.208 MB / 358.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.1273, allocations: 2.692 MB / 361 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006235/0.1279, allocations: 31.88 kB / 361 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.1292, allocations: 0.5481 MB / 361.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009323/0.1302, allocations: 484.2 kB / 362 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.1306, allocations: 263.6 kB / 362.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.1319, allocations: 1.497 MB / 363.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007366/0.1327, allocations: 0.5962 MB / 364.4 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005956/0.1333, allocations: 0.5603 MB / 364.9 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005919/0.1339, allocations: 0.6067 MB / 365.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.1341, allocations: 140 kB / 365.7 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.1344, allocations: 176 kB / 365.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.1346, allocations: 290.9 kB / 366.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005708/0.1352, allocations: 0.6726 MB / 366.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.1367, allocations: 1.732 MB / 368.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1367, allocations: 0 / 368.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1367, allocations: 0 / 368.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.1367, allocations: 0 / 368.5 MB, free: 1.836 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.00235/0.1391, allocations: 1.482 MB / 370 MB, free: 308 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1391, allocations: 11.89 kB / 370 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006558/0.1398, allocations: 187.3 kB / 370.2 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1466/0.2864, allocations: 0.7498 MB / 371 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.2865, allocations: 73.38 kB / 371 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.2867, allocations: 105.7 kB / 371.1 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.2883, allocations: 0.9371 MB / 372.1 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.2883, allocations: 14.39 kB / 372.1 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/0.2884, allocations: 43.69 kB / 372.1 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.2884, allocations: 24.12 kB / 372.1 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.2896, allocations: 0.6511 MB / 372.8 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.2946, allocations: 3.946 MB / 376.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/0.2953, allocations: 443.8 kB / 377.2 MB, free: 21.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000612/0.296, allocations: 269.3 kB / 377.4 MB, free: 21.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.296, allocations: 4.125 kB / 377.4 MB, free: 21.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.2961, allocations: 45.86 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.2961, allocations: 0 / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002835/0.2989, allocations: 1.551 MB / 379 MB, free: 20.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.299, allocations: 81.8 kB / 379.1 MB, free: 20.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.3001, allocations: 0.8335 MB / 380 MB, free: 20.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.3002, allocations: 36.92 kB / 380 MB, free: 20.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003556/0.3006, allocations: 0.5621 MB / 380.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3007, allocations: 160.5 kB / 380.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.3009, allocations: 135.4 kB / 380.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.793e-05/0.301, allocations: 333.4 kB / 381.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.3014, allocations: 174.6 kB / 381.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005388/0.3019, allocations: 478.6 kB / 381.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008674/0.3028, allocations: 0.6757 MB / 382.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3028, allocations: 4.812 kB / 382.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001448/0.3042, allocations: 0.7817 MB / 383.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.3043, allocations: 13.98 kB / 383.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.3043, allocations: 9.469 kB / 383.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.3047, allocations: 85.23 kB / 383.4 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.3053, allocations: 154.5 kB / 383.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.3071, allocations: 3.146 MB / 386.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.3077, allocations: 38.16 kB / 386.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.349e-05/0.3078, allocations: 36.48 kB / 386.7 MB, free: 14.63 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.0003695/0.3082, allocations: 262.7 kB / 387 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.3084, allocations: 91.12 kB / 387.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.3095, allocations: 0.4975 MB / 387.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3095, allocations: 7.844 kB / 387.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3096, allocations: 5.406 kB / 387.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.3096, allocations: 2.578 kB / 387.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.3121, allocations: 1.469 MB / 389.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3121, allocations: 2.594 kB / 389.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.3124, allocations: 74.8 kB / 389.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.3126, allocations: 81.14 kB / 389.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.3126, allocations: 8.656 kB / 389.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.3143, allocations: 3.121 MB / 392.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3143, allocations: 4.078 kB / 392.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.3157, allocations: 0.8051 MB / 393.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.3159, allocations: 203 kB / 393.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.316, allocations: 12.22 kB / 393.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.3164, allocations: 24.31 kB / 393.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3166, allocations: 39.42 kB / 393.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.3166, allocations: 11.09 kB / 393.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008291/0.3174, allocations: 0.5782 MB / 394 MB, free: 9.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3174, allocations: 0 / 394 MB, free: 9.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001098/0.3185, allocations: 207.8 kB / 394.2 MB, free: 9.223 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.0002569/0.3188, allocations: 143 kB / 394.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.3202, allocations: 0.7268 MB / 395.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.3202, allocations: 1.875 kB / 395.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005923/0.3208, allocations: 451.9 kB / 395.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.3219, allocations: 221.8 kB / 395.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.3245, allocations: 1.754 MB / 397.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.3249, allocations: 1.012 MB / 398.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004209/0.3254, allocations: 108.9 kB / 398.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.3255, allocations: 58.19 kB / 398.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3255, allocations: 1.375 kB / 398.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01744/0.3429, allocations: 10.7 MB / 409.4 MB, free: 13.35 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