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.001209/0.001209, allocations: 111.7 kB / 16.92 MB, free: 5.898 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.001261/0.001261, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.186/1.186, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 47.05 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07104/0.07207, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01015/0.08224, allocations: 11.73 MB / 361.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003807/0.08607, allocations: 3.23 MB / 365.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004241/0.08651, allocations: 35.94 kB / 365.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.08764, allocations: 0.6479 MB / 365.8 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009366/0.08859, allocations: 0.6665 MB / 366.5 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.08912, allocations: 411.4 kB / 366.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001504/0.09063, allocations: 2.233 MB / 369.1 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009516/0.09159, allocations: 0.9889 MB / 370.1 MB, free: 260 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1245/0.2161, allocations: 0.8357 MB / 370.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001435/0.2176, allocations: 0.9106 MB / 371.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005825/0.2182, allocations: 216.5 kB / 372.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008339/0.219, allocations: 252.3 kB / 372.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002849/0.2193, allocations: 439.5 kB / 372.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009558/0.2203, allocations: 1.018 MB / 373.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002325/0.2226, allocations: 2.643 MB / 376.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2226, allocations: 0 / 376.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2226, allocations: 0.7031 kB / 376.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.38e-05/0.2227, allocations: 1.375 kB / 376.4 MB, free: 11.74 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.00296/0.2257, allocations: 2.065 MB / 378.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2257, allocations: 9.844 kB / 378.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002195/0.2259, allocations: 223 kB / 378.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006928/0.2266, allocations: 257.2 kB / 378.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.2279, allocations: 1.022 MB / 380 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.228, allocations: 117.3 kB / 380.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.2281, allocations: 158.1 kB / 380.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.2301, allocations: 1.491 MB / 381.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.2302, allocations: 13.48 kB / 381.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.2303, allocations: 61.62 kB / 381.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.2304, allocations: 37.84 kB / 381.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.2319, allocations: 0.9729 MB / 382.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005646/0.2376, allocations: 6.573 MB / 389.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.2383, allocations: 401 kB / 389.8 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/0.2386, allocations: 227.4 kB / 390 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.2387, allocations: 5.906 kB / 390 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004548/0.2391, allocations: 264.4 kB / 390.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.894e-06/0.2392, allocations: 3.938 kB / 390.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.00254/0.2417, allocations: 1.756 MB / 392 MB, free: 3.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2418, allocations: 166.3 kB / 392.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.2431, allocations: 1.273 MB / 393.5 MB, free: 2.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.2431, allocations: 41.19 kB / 393.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003695/0.2435, allocations: 0.8758 MB / 394.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.89e-05/0.2436, allocations: 208.2 kB / 394.6 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.2438, allocations: 217.2 kB / 394.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/0.2439, allocations: 355.8 kB / 395.1 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.2442, allocations: 229.7 kB / 395.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006096/0.2449, allocations: 0.8019 MB / 396.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.246, allocations: 1.115 MB / 397.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.246, allocations: 5.344 kB / 397.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001639/0.2477, allocations: 1.173 MB / 398.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.2477, allocations: 39.45 kB / 398.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.2478, allocations: 19.25 kB / 398.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.248, allocations: 72.12 kB / 398.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.2487, allocations: 273.1 kB / 398.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.2503, allocations: 2.768 MB / 401.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.2511, allocations: 73.47 kB / 401.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.2511, allocations: 56.44 kB / 401.7 MB, free: 11.16 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.0003982/0.2515, allocations: 354.3 kB / 402.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2517, allocations: 139.2 kB / 402.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008613/0.2525, allocations: 0.5584 MB / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2525, allocations: 5.172 kB / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2526, allocations: 3.5 kB / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.2526, allocations: 0 / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.2548, allocations: 1.87 MB / 404.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.2548, allocations: 7.016 kB / 404.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.2552, allocations: 106.6 kB / 404.8 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.2553, allocations: 43.2 kB / 404.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.2553, allocations: 20.91 kB / 404.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.2568, allocations: 2.746 MB / 407.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.2569, allocations: 16.97 kB / 407.6 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.258, allocations: 0.9136 MB / 408.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.2583, allocations: 254.9 kB / 408.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.2584, allocations: 21.92 kB / 408.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.2589, allocations: 28.23 kB / 408.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.259, allocations: 60.16 kB / 408.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.2591, allocations: 17.34 kB / 408.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009332/0.26, allocations: 0.8464 MB / 409.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.26, allocations: 0 / 409.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009601/0.261, allocations: 308 kB / 410 MB, free: 4.453 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.001527/0.2625, allocations: 1.502 MB / 411.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.2639, allocations: 0.9507 MB / 412.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.2639, allocations: 320 / 412.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.2645, allocations: 469.6 kB / 412.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.2658, allocations: 338.2 kB / 413.3 MB, free: 1.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.2798, allocations: 12.18 MB / 425.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/0.2806, allocations: 1.174 MB / 426.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006295/0.2812, allocations: 171.3 kB / 426.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006049/0.2818, allocations: 0.5734 MB / 427.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2818, allocations: 0 / 427.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/0.6287, allocations: 27.15 MB / 454.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13.09, allocations: 10.52 kB / 454.5 MB, free: 7.125 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