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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008347/0.0008347, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009697/0.0009696, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001894/0.0001894, allocations: 15.97 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.07969, allocations: 51.51 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01019/0.08992, allocations: 11.1 MB / 370.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1525/0.2425, allocations: 3.199 MB / 373.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009539/0.2435, allocations: 35.75 kB / 373.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.2448, allocations: 0.5576 MB / 374.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.2462, allocations: 0.5813 MB / 374.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.2469, allocations: 350.5 kB / 375.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.2489, allocations: 2.113 MB / 377.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009884/0.2499, allocations: 0.8514 MB / 378.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009777/0.2509, allocations: 0.7021 MB / 378.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008182/0.2517, allocations: 0.78 MB / 379.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001957/0.2519, allocations: 102.7 kB / 379.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004148/0.2524, allocations: 143 kB / 379.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.2526, allocations: 297.8 kB / 380.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007581/0.2534, allocations: 0.9062 MB / 381.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002242/0.2556, allocations: 2.511 MB / 383.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2556, allocations: 0 / 383.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2557, allocations: 0 / 383.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.07e-05/0.2557, allocations: 1.281 kB / 383.6 MB, free: 8.168 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.002484/0.2582, allocations: 1.759 MB / 385.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2582, allocations: 9.625 kB / 385.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002156/0.2584, allocations: 219.2 kB / 385.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007155/0.2592, allocations: 259.5 kB / 385.8 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.2605, allocations: 1.029 MB / 386.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.2606, allocations: 116.8 kB / 386.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.2608, allocations: 161.2 kB / 387.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.263, allocations: 1.492 MB / 388.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.882e-05/0.263, allocations: 16.2 kB / 388.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.2632, allocations: 66.17 kB / 388.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.2632, allocations: 38 kB / 388.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.2649, allocations: 0.99 MB / 389.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006175/0.271, allocations: 6.577 MB / 396.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.2718, allocations: 414.9 kB / 396.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004104/0.2723, allocations: 224.6 kB / 396.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.2723, allocations: 8.984 kB / 396.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004922/0.2728, allocations: 277.9 kB / 397.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.315e-06/0.2728, allocations: 7.938 kB / 397.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002961/0.2758, allocations: 1.793 MB / 399 MB, free: 13.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.2759, allocations: 165.8 kB / 399.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.2775, allocations: 1.282 MB / 400.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.2775, allocations: 37.33 kB / 400.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000568/0.2781, allocations: 0.8631 MB / 401.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.2782, allocations: 212 kB / 401.5 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.2784, allocations: 99.31 kB / 401.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2785, allocations: 347.8 kB / 402 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.2789, allocations: 243.3 kB / 402.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007515/0.2797, allocations: 0.8008 MB / 403 MB, free: 9.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.2809, allocations: 1.131 MB / 404.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.2809, allocations: 5.688 kB / 404.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001652/0.2826, allocations: 1.183 MB / 405.3 MB, free: 8.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.2826, allocations: 39.2 kB / 405.4 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.2826, allocations: 23.94 kB / 405.4 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.2828, allocations: 71.41 kB / 405.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006926/0.2835, allocations: 261.1 kB / 405.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.2852, allocations: 2.592 MB / 408.3 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.286, allocations: 71.66 kB / 408.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.498e-05/0.2861, allocations: 62.41 kB / 408.4 MB, free: 5.418 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.0004783/0.2866, allocations: 365.2 kB / 408.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.2867, allocations: 130.4 kB / 408.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009923/0.2877, allocations: 0.5607 MB / 409.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.2877, allocations: 11.94 kB / 409.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2877, allocations: 0 / 409.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2877, allocations: 3.984 kB / 409.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.2902, allocations: 1.883 MB / 411.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.2902, allocations: 4 kB / 411.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.2906, allocations: 111.8 kB / 411.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001282/0.2908, allocations: 41.7 kB / 411.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.2908, allocations: 20.27 kB / 411.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/0.2924, allocations: 2.549 MB / 414.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2924, allocations: 7.938 kB / 414.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.2937, allocations: 0.9444 MB / 415.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.294, allocations: 255.5 kB / 415.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.2941, allocations: 19.98 kB / 415.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004992/0.2946, allocations: 39.97 kB / 415.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.2947, allocations: 51.81 kB / 415.4 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.2948, allocations: 20 kB / 415.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.2958, allocations: 0.8461 MB / 416.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2958, allocations: 0 / 416.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000966/0.2968, allocations: 308 kB / 416.6 MB, free: 12.83 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.001606/0.2984, allocations: 1.516 MB / 418.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.2997, allocations: 0.9341 MB / 419 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.2998, allocations: 4 kB / 419 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006039/0.3004, allocations: 465.9 kB / 419.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.3023, allocations: 309.3 kB / 419.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.3199, allocations: 12.9 MB / 432.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007133/0.3207, allocations: 1.178 MB / 433.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000659/0.3213, allocations: 175.2 kB / 434 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006197/0.322, allocations: 0.5696 MB / 434.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.322, allocations: 0 / 434.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0416/0.3636, allocations: 26.05 MB / 460.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/0.3639, allocations: 247.6 kB / 460.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.483, allocations: 0 / 460.9 MB, free: 15.45 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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