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.001414/0.001414, allocations: 100.3 kB / 17.58 MB, free: 5.418 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.001529/0.001529, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.328/1.328, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001374/0.001374, allocations: 59.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.08544, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01405/0.09955, allocations: 11.68 MB / 339.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006413/0.106, allocations: 3.227 MB / 342.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.1077, allocations: 35.94 kB / 342.3 MB, free: 5.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002329/0.11, allocations: 0.6401 MB / 343 MB, free: 4.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.113, allocations: 0.6782 MB / 343.7 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.1143, allocations: 407.5 kB / 344.1 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003349/0.1176, allocations: 2.223 MB / 346.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.1193, allocations: 0.9888 MB / 347.3 MB, free: 356 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.1207, allocations: 0.829 MB / 348.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.1222, allocations: 0.9139 MB / 349 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006497/0.1229, allocations: 216 kB / 349.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.124, allocations: 259.8 kB / 349.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000589/0.1246, allocations: 434.4 kB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002009/0.1266, allocations: 1.015 MB / 350.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.1294, allocations: 2.644 MB / 353.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.1295, allocations: 4 kB / 353.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1295, allocations: 0 / 353.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.1296, allocations: 0 / 353.6 MB, free: 10.03 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.004676/0.1343, allocations: 2.064 MB / 355.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1343, allocations: 8.031 kB / 355.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002449/0.1346, allocations: 224 kB / 355.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000769/0.1354, allocations: 254.5 kB / 356.1 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.1369, allocations: 1.024 MB / 357.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.667e-05/0.137, allocations: 123.2 kB / 357.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001829/0.1372, allocations: 159.9 kB / 357.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.1393, allocations: 1.483 MB / 358.9 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.1394, allocations: 11.91 kB / 358.9 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.1395, allocations: 60 kB / 359 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.737e-05/0.1395, allocations: 40 kB / 359 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.1412, allocations: 0.9746 MB / 360 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007102/0.1483, allocations: 6.578 MB / 366.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007522/0.1491, allocations: 400.2 kB / 366.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/0.1496, allocations: 230 kB / 367.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.1496, allocations: 4.438 kB / 367.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005509/0.1502, allocations: 272.8 kB / 367.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.1502, allocations: 0 / 367.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002992/0.1532, allocations: 1.765 MB / 369.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.1533, allocations: 166.8 kB / 369.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.1548, allocations: 1.273 MB / 370.6 MB, free: 8.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.1549, allocations: 37.7 kB / 370.7 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006625/0.1555, allocations: 0.879 MB / 371.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.1557, allocations: 201.2 kB / 371.7 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.1559, allocations: 222.6 kB / 372 MB, free: 6.863 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1561, allocations: 349.9 kB / 372.3 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/0.1565, allocations: 230.5 kB / 372.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007718/0.1573, allocations: 0.7995 MB / 373.3 MB, free: 5.215 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.1586, allocations: 1.122 MB / 374.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.1586, allocations: 8 kB / 374.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001985/0.1606, allocations: 1.165 MB / 375.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.1607, allocations: 41.7 kB / 375.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.954e-05/0.1607, allocations: 23.94 kB / 375.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002256/0.1609, allocations: 70.38 kB / 375.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007889/0.1617, allocations: 263.5 kB / 376 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1575/0.3193, allocations: 2.766 MB / 378.8 MB, free: 50 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.3208, allocations: 72.8 kB / 378.8 MB, free: 50 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.423e-05/0.3209, allocations: 62.5 kB / 378.9 MB, free: 50 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.0006303/0.3215, allocations: 360.7 kB / 379.3 MB, free: 49.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3217, allocations: 134.7 kB / 379.4 MB, free: 49.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009985/0.3227, allocations: 0.5505 MB / 379.9 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3227, allocations: 6.438 kB / 379.9 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3227, allocations: 0 / 379.9 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3228, allocations: 3.625 kB / 380 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.3257, allocations: 1.878 MB / 381.8 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.3257, allocations: 3.875 kB / 381.8 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/0.3262, allocations: 108.9 kB / 381.9 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001409/0.3263, allocations: 45.97 kB / 382 MB, free: 49.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.3263, allocations: 22 kB / 382 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.3276, allocations: 2.739 MB / 384.7 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3276, allocations: 1.719 kB / 384.7 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.3291, allocations: 0.9283 MB / 385.7 MB, free: 45.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004792/0.3296, allocations: 256.6 kB / 385.9 MB, free: 45.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3297, allocations: 19.28 kB / 385.9 MB, free: 45.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005236/0.3302, allocations: 30.73 kB / 386 MB, free: 45.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3304, allocations: 57.02 kB / 386 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.3304, allocations: 22.77 kB / 386.1 MB, free: 45.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.3318, allocations: 0.8439 MB / 386.9 MB, free: 45.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3318, allocations: 1.031 kB / 386.9 MB, free: 45.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001135/0.333, allocations: 300.1 kB / 387.2 MB, free: 45.38 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.001582/0.3346, allocations: 1.492 MB / 388.7 MB, free: 44.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.3362, allocations: 0.9432 MB / 389.6 MB, free: 43.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.3362, allocations: 4.141 kB / 389.6 MB, free: 43.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005897/0.3368, allocations: 476.9 kB / 390.1 MB, free: 43.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.3382, allocations: 335.2 kB / 390.4 MB, free: 43.39 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.353, allocations: 12.18 MB / 402.6 MB, free: 35.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.3537, allocations: 1.176 MB / 403.8 MB, free: 34.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007564/0.3544, allocations: 165.9 kB / 403.9 MB, free: 34.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005128/0.3549, allocations: 0.5739 MB / 404.5 MB, free: 33.84 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3549, allocations: 0 / 404.5 MB, free: 33.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08621/0.4412, allocations: 27.16 MB / 431.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.02, allocations: 11.95 kB / 431.7 MB, free: 8.27 MB / 318.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