Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 109.5 kB / 17.73 MB, free: 5.344 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.00114/0.00114, allocations: 192.1 kB / 18.66 MB, free: 4.418 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.353/1.353, allocations: 205.1 MB / 224.5 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.001335/0.001336, allocations: 56.3 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.0908, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.2099/0.3008, allocations: 11.69 MB / 386.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006224/0.3071, allocations: 3.217 MB / 389.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.3087, allocations: 35.84 kB / 389.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001997/0.3107, allocations: 0.6422 MB / 390.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002027/0.3128, allocations: 0.6758 MB / 390.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.3138, allocations: 401.8 kB / 391.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002563/0.3163, allocations: 2.243 MB / 393.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.3176, allocations: 1 MB / 394.6 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001283/0.3189, allocations: 0.8378 MB / 395.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.32, allocations: 0.9174 MB / 396.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002775/0.3203, allocations: 216.8 kB / 396.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004984/0.3208, allocations: 253.4 kB / 396.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.321, allocations: 427.8 kB / 397.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008863/0.3219, allocations: 1.021 MB / 398.2 MB, free: 112 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00313/0.3251, allocations: 2.68 MB / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3251, allocations: 1.156 kB / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3251, allocations: 0 / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.307e-05/0.3252, allocations: 4 kB / 400.9 MB, free: 15.09 MB / 334.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.003713/0.3289, allocations: 2.065 MB / 403 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3289, allocations: 8.5 kB / 403 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002744/0.3292, allocations: 223.9 kB / 403.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008001/0.33, allocations: 253.7 kB / 403.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.3319, allocations: 1.044 MB / 404.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.332, allocations: 117.1 kB / 404.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.3322, allocations: 161.6 kB / 404.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.3349, allocations: 1.488 MB / 406.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-05/0.3349, allocations: 11.56 kB / 406.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.3351, allocations: 65.69 kB / 406.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.156e-05/0.3351, allocations: 38.22 kB / 406.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002047/0.3372, allocations: 0.972 MB / 407.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008943/0.3462, allocations: 6.513 MB / 413.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008487/0.347, allocations: 402.8 kB / 414.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004438/0.3475, allocations: 219.2 kB / 414.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.3476, allocations: 9.844 kB / 414.5 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005341/0.3481, allocations: 268.4 kB / 414.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.755e-06/0.3481, allocations: 0 / 414.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003581/0.3517, allocations: 1.758 MB / 416.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.3518, allocations: 165.5 kB / 416.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/0.3535, allocations: 1.274 MB / 417.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.3536, allocations: 41.2 kB / 417.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007416/0.3544, allocations: 0.877 MB / 418.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3545, allocations: 200 kB / 419 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002942/0.3548, allocations: 221.2 kB / 419.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.355, allocations: 356.1 kB / 419.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.3555, allocations: 225.6 kB / 419.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.3564, allocations: 0.8086 MB / 420.6 MB, free: 380 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3579, allocations: 1.114 MB / 421.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/0.3579, allocations: 9.781 kB / 421.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002368/0.3603, allocations: 1.165 MB / 422.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.3604, allocations: 49.62 kB / 422.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.06e-05/0.3604, allocations: 20.62 kB / 423 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000299/0.3607, allocations: 69.7 kB / 423 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008292/0.3616, allocations: 263.6 kB / 423.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.3639, allocations: 2.78 MB / 426.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.3651, allocations: 67.89 kB / 426.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.3652, allocations: 71.97 kB / 426.2 MB, free: 10.83 MB / 350.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.0006406/0.3659, allocations: 353.3 kB / 426.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.3662, allocations: 134.3 kB / 426.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001143/0.3673, allocations: 0.549 MB / 427.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.3673, allocations: 8 kB / 427.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3674, allocations: 0 / 427.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3674, allocations: 3.984 kB / 427.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.3707, allocations: 1.874 MB / 429.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.3707, allocations: 4 kB / 429.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004507/0.3712, allocations: 99.89 kB / 429.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001576/0.3714, allocations: 49.62 kB / 429.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.3714, allocations: 16.34 kB / 429.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/0.3733, allocations: 2.761 MB / 432 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3733, allocations: 4 kB / 432.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.3748, allocations: 0.9199 MB / 433 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006143/0.3754, allocations: 255.5 kB / 433.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002991/0.3757, allocations: 16 kB / 433.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000655/0.3764, allocations: 31.97 kB / 433.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.3765, allocations: 59.59 kB / 433.3 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.3766, allocations: 20 kB / 433.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001328/0.3779, allocations: 0.8461 MB / 434.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3779, allocations: 0 / 434.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001473/0.3794, allocations: 307.9 kB / 434.5 MB, free: 2.02 MB / 350.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.001977/0.3814, allocations: 1.492 MB / 436 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.3831, allocations: 0.9258 MB / 436.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3832, allocations: 0.5 kB / 436.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007386/0.3839, allocations: 481.1 kB / 437.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.3859, allocations: 335.4 kB / 437.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/0.4039, allocations: 10.88 MB / 448.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000944/0.4049, allocations: 1.178 MB / 449.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006649/0.4056, allocations: 167.3 kB / 449.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.4064, allocations: 0.5735 MB / 450.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4064, allocations: 0 / 450.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09648/0.5029, allocations: 28.14 MB / 478.6 MB, free: 4.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.74, allocations: 27.73 kB / 478.7 MB, free: 4.758 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches