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.001116/0.001116, allocations: 106.5 kB / 17.73 MB, free: 5.355 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.00117/0.00117, allocations: 187 kB / 18.66 MB, free: 4.434 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.386/1.386, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001237/0.001237, allocations: 59.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.08706, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1859/0.273, allocations: 11.7 MB / 386.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005824/0.2789, allocations: 3.207 MB / 389.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001889/0.2808, allocations: 39.69 kB / 389.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001927/0.2828, allocations: 0.6427 MB / 390.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.2851, allocations: 0.6797 MB / 390.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.2862, allocations: 397.2 kB / 391.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003182/0.2894, allocations: 2.244 MB / 393.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.2907, allocations: 0.9997 MB / 394.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.2921, allocations: 0.8452 MB / 395.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.2933, allocations: 0.917 MB / 396.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00032/0.2937, allocations: 216 kB / 396.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006258/0.2943, allocations: 255.5 kB / 396.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002955/0.2946, allocations: 431.7 kB / 397.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009855/0.2956, allocations: 1.016 MB / 398.2 MB, free: 4 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003605/0.2992, allocations: 2.685 MB / 400.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.2992, allocations: 0 / 400.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2992, allocations: 1.406 kB / 400.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.417e-05/0.2993, allocations: 4 kB / 400.9 MB, free: 14.98 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.004559/0.3039, allocations: 2.05 MB / 403 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.304, allocations: 10.92 kB / 403 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002614/0.3042, allocations: 227.9 kB / 403.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007838/0.305, allocations: 251.9 kB / 403.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3069, allocations: 1.051 MB / 404.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-05/0.307, allocations: 117.1 kB / 404.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/0.3072, allocations: 157.7 kB / 404.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.3096, allocations: 1.486 MB / 406.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.104e-05/0.3097, allocations: 15.48 kB / 406.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.3098, allocations: 64.12 kB / 406.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.3099, allocations: 38.97 kB / 406.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.3117, allocations: 0.9718 MB / 407.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007756/0.3195, allocations: 6.508 MB / 413.8 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007678/0.3202, allocations: 407.5 kB / 414.2 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.3207, allocations: 216.6 kB / 414.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.3207, allocations: 6.062 kB / 414.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004829/0.3212, allocations: 272.9 kB / 414.7 MB, free: 4.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.437e-06/0.3212, allocations: 3.938 kB / 414.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003329/0.3246, allocations: 1.763 MB / 416.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.262e-05/0.3247, allocations: 165.3 kB / 416.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.3263, allocations: 1.27 MB / 417.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.3263, allocations: 40.89 kB / 418 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/0.327, allocations: 0.8697 MB / 418.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.3271, allocations: 212 kB / 419 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.3274, allocations: 218.1 kB / 419.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3275, allocations: 351.1 kB / 419.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/0.328, allocations: 232.4 kB / 419.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008368/0.3288, allocations: 0.81 MB / 420.6 MB, free: 284 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.3302, allocations: 1.114 MB / 421.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.3302, allocations: 8.656 kB / 421.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001933/0.3321, allocations: 1.17 MB / 422.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.3322, allocations: 37.7 kB / 422.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.3322, allocations: 24.62 kB / 423 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.3325, allocations: 69.64 kB / 423 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007414/0.3332, allocations: 267.6 kB / 423.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.335, allocations: 2.776 MB / 426.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.3361, allocations: 75.88 kB / 426.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.067e-05/0.3362, allocations: 60 kB / 426.2 MB, free: 10.74 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.0005527/0.3368, allocations: 349.3 kB / 426.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.3369, allocations: 134.3 kB / 426.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.3379, allocations: 0.5528 MB / 427.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.338, allocations: 4 kB / 427.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.338, allocations: 4 kB / 427.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.338, allocations: 3.984 kB / 427.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.3408, allocations: 1.874 MB / 429.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3408, allocations: 4 kB / 429.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.3412, allocations: 103.9 kB / 429.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001386/0.3414, allocations: 37.7 kB / 429.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.3414, allocations: 16 kB / 429.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.3431, allocations: 2.765 MB / 432 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3431, allocations: 11.88 kB / 432.1 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.3445, allocations: 0.916 MB / 433 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000468/0.345, allocations: 251.5 kB / 433.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.3451, allocations: 16 kB / 433.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.3457, allocations: 35.91 kB / 433.3 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/0.3458, allocations: 55.66 kB / 433.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.3458, allocations: 20 kB / 433.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001038/0.3468, allocations: 0.8461 MB / 434.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.774e-06/0.3468, allocations: 0 / 434.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001107/0.348, allocations: 307.9 kB / 434.5 MB, free: 1.934 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.001631/0.3496, allocations: 1.492 MB / 436 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.3511, allocations: 0.9338 MB / 436.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3511, allocations: 384 / 436.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006359/0.3518, allocations: 477.1 kB / 437.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.3533, allocations: 333.9 kB / 437.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.3679, allocations: 10.87 MB / 448.6 MB, free: 2.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007188/0.3687, allocations: 1.174 MB / 449.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006008/0.3693, allocations: 171.3 kB / 449.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006331/0.3699, allocations: 0.5696 MB / 450.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3699, allocations: 0 / 450.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0593/0.4292, allocations: 28.16 MB / 478.7 MB, free: 4.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.15, allocations: 19.78 kB / 478.7 MB, free: 4.66 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