Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.001193/0.001193, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.22/1.22, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 47.92 kB / 300.2 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07445/0.07567, allocations: 49.45 MB / 349.7 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0109/0.08659, allocations: 11.65 MB / 361.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004919/0.09153, allocations: 3.188 MB / 364.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.09279, allocations: 35.94 kB / 364.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.09455, allocations: 0.5554 MB / 365.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.09626, allocations: 0.5857 MB / 365.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.09694, allocations: 355.7 kB / 366.1 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.09883, allocations: 2.232 MB / 368.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.09992, allocations: 0.9928 MB / 369.3 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.128/0.228, allocations: 0.8309 MB / 370.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.2291, allocations: 0.9138 MB / 371 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003503/0.2295, allocations: 217.2 kB / 371.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003808/0.2299, allocations: 256.1 kB / 371.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.2301, allocations: 429 kB / 371.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006896/0.2308, allocations: 1.016 MB / 372.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001992/0.2328, allocations: 2.647 MB / 375.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2328, allocations: 0 / 375.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2328, allocations: 1.438 kB / 375.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.2328, allocations: 0 / 375.6 MB, free: 11.64 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.002591/0.2354, allocations: 2.065 MB / 377.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2355, allocations: 10.41 kB / 377.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002242/0.2357, allocations: 219.8 kB / 377.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000664/0.2364, allocations: 257.3 kB / 378.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.2376, allocations: 1.023 MB / 379.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.535e-05/0.2376, allocations: 116.2 kB / 379.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.2378, allocations: 164.4 kB / 379.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.2398, allocations: 1.488 MB / 380.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.227e-05/0.2399, allocations: 14.86 kB / 380.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.24, allocations: 62.84 kB / 381 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.24, allocations: 38.41 kB / 381 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.2415, allocations: 0.9761 MB / 382 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005247/0.2467, allocations: 6.566 MB / 388.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.2474, allocations: 403.3 kB / 389 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003337/0.2477, allocations: 220.5 kB / 389.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.2478, allocations: 5 kB / 389.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/0.2482, allocations: 275.5 kB / 389.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.763e-06/0.2482, allocations: 0 / 389.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002305/0.2505, allocations: 1.761 MB / 391.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.2506, allocations: 165.7 kB / 391.4 MB, free: 2.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.2519, allocations: 1.274 MB / 392.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.2519, allocations: 36.83 kB / 392.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.2523, allocations: 0.8716 MB / 393.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.202e-05/0.2524, allocations: 207.8 kB / 393.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.2526, allocations: 222.4 kB / 394 MB, free: 1.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.359e-05/0.2526, allocations: 357.2 kB / 394.3 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.253, allocations: 227.6 kB / 394.5 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.2535, allocations: 0.8003 MB / 395.3 MB, free: 15.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.2546, allocations: 1.119 MB / 396.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2546, allocations: 5.844 kB / 396.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001527/0.2562, allocations: 1.172 MB / 397.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.2562, allocations: 40.14 kB / 397.7 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.2562, allocations: 23.3 kB / 397.7 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.2564, allocations: 64.7 kB / 397.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006758/0.2571, allocations: 276.9 kB / 398 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.2587, allocations: 2.769 MB / 400.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007068/0.2594, allocations: 67.73 kB / 400.9 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.134e-05/0.2594, allocations: 58.88 kB / 400.9 MB, free: 11.23 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.0003839/0.2598, allocations: 361.4 kB / 401.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.26, allocations: 129.9 kB / 401.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008731/0.2608, allocations: 0.5568 MB / 402 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.2609, allocations: 4.844 kB / 402 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2609, allocations: 1.125 kB / 402 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2609, allocations: 5.203 kB / 402 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.263, allocations: 1.865 MB / 403.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.263, allocations: 3.438 kB / 403.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.2634, allocations: 101.4 kB / 403.9 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.2635, allocations: 52.84 kB / 404 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.2635, allocations: 15.38 kB / 404 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.265, allocations: 2.747 MB / 406.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.265, allocations: 10.03 kB / 406.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.2661, allocations: 0.929 MB / 407.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.2664, allocations: 266.3 kB / 407.9 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.2665, allocations: 17.78 kB / 408 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.267, allocations: 31.62 kB / 408 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.308e-05/0.2671, allocations: 53.61 kB / 408 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.2672, allocations: 24.08 kB / 408.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000881/0.2681, allocations: 0.845 MB / 408.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2681, allocations: 0 / 408.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.2689, allocations: 302.6 kB / 409.2 MB, free: 4.895 MB / 318.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.001435/0.2704, allocations: 1.5 MB / 410.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.2716, allocations: 0.9493 MB / 411.7 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2717, allocations: 4 kB / 411.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005729/0.2722, allocations: 472.7 kB / 412.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.2735, allocations: 337.7 kB / 412.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/0.2889, allocations: 12.74 MB / 425.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.2895, allocations: 1.178 MB / 426.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.2901, allocations: 171.3 kB / 426.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005568/0.2906, allocations: 0.5696 MB / 427.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2906, allocations: 0 / 427.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.144/1.435, allocations: 27.01 MB / 454.1 MB, free: 7.367 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002835/1.435, allocations: 244.8 kB / 454.4 MB, free: 7.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/4.003, allocations: 3.625 kB / 454.4 MB, free: 7.109 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches