Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 108 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 63.23 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1429, allocations: 50.54 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01313/0.1561, allocations: 11.67 MB / 368.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2021/0.3582, allocations: 3.208 MB / 371.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001492/0.3597, allocations: 37.62 kB / 371.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.3615, allocations: 0.5639 MB / 372.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001523/0.363, allocations: 0.5795 MB / 373 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.3637, allocations: 352.4 kB / 373.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.3657, allocations: 2.235 MB / 375.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.367, allocations: 0.9936 MB / 376.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.3683, allocations: 0.8488 MB / 377.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.3694, allocations: 0.9068 MB / 378.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.3696, allocations: 216.3 kB / 378.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005061/0.3701, allocations: 254.2 kB / 378.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.3704, allocations: 432 kB / 379.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008828/0.3713, allocations: 1.016 MB / 380.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.3738, allocations: 2.643 MB / 382.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.3739, allocations: 0.7031 kB / 382.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3739, allocations: 3.938 kB / 382.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.3739, allocations: 4.938 kB / 382.9 MB, free: 7.777 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003187/0.3771, allocations: 2.067 MB / 385 MB, free: 6.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.3771, allocations: 16.67 kB / 385 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008014/0.378, allocations: 257.4 kB / 385.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.3793, allocations: 1.018 MB / 386.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.487e-05/0.3794, allocations: 113.5 kB / 386.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.3796, allocations: 160.8 kB / 386.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.382, allocations: 1.49 MB / 388 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.104e-05/0.382, allocations: 14.41 kB / 388 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.3821, allocations: 63.56 kB / 388.1 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.079e-05/0.3822, allocations: 37.75 kB / 388.1 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.3839, allocations: 0.9772 MB / 389.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007283/0.3912, allocations: 6.58 MB / 395.7 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000815/0.392, allocations: 399.2 kB / 396.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004373/0.3925, allocations: 225.8 kB / 396.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.3925, allocations: 9.812 kB / 396.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005835/0.3931, allocations: 268.6 kB / 396.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.274e-06/0.3931, allocations: 0 / 396.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003596/0.3967, allocations: 1.757 MB / 398.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.666e-05/0.3968, allocations: 165.8 kB / 398.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.3987, allocations: 1.274 MB / 399.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.3988, allocations: 40.73 kB / 399.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007021/0.3995, allocations: 0.8711 MB / 400.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.3997, allocations: 205 kB / 400.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.4, allocations: 216.1 kB / 401.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4002, allocations: 355.7 kB / 401.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004921/0.4007, allocations: 234.6 kB / 401.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009618/0.4017, allocations: 0.8056 MB / 402.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.4033, allocations: 1.114 MB / 403.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.4033, allocations: 9.812 kB / 403.6 MB, free: 8.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002094/0.4054, allocations: 1.164 MB / 404.8 MB, free: 8.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.083e-05/0.4055, allocations: 43.67 kB / 404.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.4055, allocations: 21.59 kB / 404.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.4057, allocations: 63.89 kB / 404.9 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007246/0.4065, allocations: 271.1 kB / 405.2 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.4088, allocations: 2.783 MB / 407.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.41, allocations: 72.03 kB / 408 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.131e-05/0.4101, allocations: 60 kB / 408.1 MB, free: 4.957 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000658/0.4107, allocations: 361.3 kB / 408.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.4109, allocations: 130.3 kB / 408.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.4119, allocations: 0.5566 MB / 409.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.412, allocations: 8 kB / 409.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.412, allocations: 0 / 409.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-06/0.412, allocations: 3.984 kB / 409.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.4148, allocations: 1.867 MB / 411 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4148, allocations: 8.062 kB / 411 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.4152, allocations: 107.8 kB / 411.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001462/0.4154, allocations: 41.7 kB / 411.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.4154, allocations: 19.98 kB / 411.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.4174, allocations: 2.742 MB / 413.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.4174, allocations: 7.938 kB / 413.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.4189, allocations: 0.9208 MB / 414.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005702/0.4195, allocations: 259.3 kB / 415.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.4197, allocations: 19.98 kB / 415.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.4204, allocations: 39.95 kB / 415.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4205, allocations: 51.83 kB / 415.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/0.4206, allocations: 23.92 kB / 415.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001116/0.4217, allocations: 0.8461 MB / 416.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4217, allocations: 0 / 416.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001152/0.4229, allocations: 308 kB / 416.4 MB, free: 12.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002628/0.4231, allocations: 127.1 kB / 416.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.4249, allocations: 0.9489 MB / 417.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.4249, allocations: 3.938 kB / 417.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006755/0.4256, allocations: 470 kB / 417.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.4278, allocations: 333.8 kB / 418.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006126/0.434, allocations: 3.15 MB / 421.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.4351, allocations: 1.178 MB / 422.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001008/0.4361, allocations: 167.3 kB / 422.7 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.4364, allocations: 83.44 kB / 422.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4364, allocations: 0 / 422.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of Templates: time 0.03824/0.4747, allocations: 14.89 MB / 437.7 MB, free: 6.848 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches