Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 175.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.144/1.144, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006535/0.0006536, allocations: 97 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.000271, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1875, allocations: 47.56 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.007281/0.1948, allocations: 10.35 MB / 385.5 MB, free: 37.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003825/0.1987, allocations: 3.038 MB / 388.6 MB, free: 34.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005576/0.1993, allocations: 38.44 kB / 388.6 MB, free: 34.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009506/0.2002, allocations: 0.5142 MB / 389.1 MB, free: 34.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000855/0.2011, allocations: 0.5504 MB / 389.7 MB, free: 33.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.2015, allocations: 252.7 kB / 389.9 MB, free: 33.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2028, allocations: 2.08 MB / 392 MB, free: 31.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008046/0.2036, allocations: 0.8473 MB / 392.8 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005062/0.2042, allocations: 0.665 MB / 393.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005152/0.2047, allocations: 0.7504 MB / 394.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.2048, allocations: 100 kB / 394.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.2051, allocations: 144 kB / 394.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.2053, allocations: 290.6 kB / 394.8 MB, free: 29.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004975/0.2058, allocations: 0.8648 MB / 395.7 MB, free: 28.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.2069, allocations: 2.103 MB / 397.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2069, allocations: 0 / 397.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2069, allocations: 0 / 397.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.2069, allocations: 0 / 397.8 MB, free: 26.02 MB / 298.7 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.002121/0.2091, allocations: 1.764 MB / 399.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.2091, allocations: 8.031 kB / 399.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.2093, allocations: 224.1 kB / 399.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.2099, allocations: 254.5 kB / 400 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.211, allocations: 1.024 MB / 401 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.148e-05/0.211, allocations: 115.2 kB / 401.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.2112, allocations: 159.9 kB / 401.3 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.213, allocations: 1.483 MB / 402.8 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/0.2131, allocations: 15.94 kB / 402.8 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.256e-05/0.2132, allocations: 60 kB / 402.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.2132, allocations: 40 kB / 402.9 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.2146, allocations: 0.9707 MB / 403.9 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.2198, allocations: 6.601 MB / 410.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.2204, allocations: 416.1 kB / 410.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003359/0.2208, allocations: 224.5 kB / 411.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.2208, allocations: 4.438 kB / 411.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.2213, allocations: 276.8 kB / 411.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.234e-06/0.2213, allocations: 0 / 411.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002272/0.2235, allocations: 1.777 MB / 413.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.2236, allocations: 166.8 kB / 413.3 MB, free: 9.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.2247, allocations: 1.257 MB / 414.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.2248, allocations: 37.7 kB / 414.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003816/0.2252, allocations: 0.8828 MB / 415.5 MB, free: 7.551 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.16e-05/0.2253, allocations: 209.2 kB / 415.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.2253, allocations: 20 kB / 415.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.2254, allocations: 353.9 kB / 416 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003664/0.2257, allocations: 230.5 kB / 416.3 MB, free: 6.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/0.2263, allocations: 0.8034 MB / 417.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000925/0.2272, allocations: 1.122 MB / 418.2 MB, free: 4.277 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2272, allocations: 4 kB / 418.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001387/0.2286, allocations: 1.169 MB / 419.4 MB, free: 3.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.2287, allocations: 45.64 kB / 419.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.2287, allocations: 23.94 kB / 419.4 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.2289, allocations: 69.62 kB / 419.5 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/0.2295, allocations: 268 kB / 419.8 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.2306, allocations: 2.579 MB / 422.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007339/0.2314, allocations: 76.05 kB / 422.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.684e-05/0.2315, allocations: 63.98 kB / 422.5 MB, free: 15.69 MB / 314.7 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004455/0.2319, allocations: 361.3 kB / 422.8 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2321, allocations: 130.4 kB / 423 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009415/0.233, allocations: 0.5567 MB / 423.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.233, allocations: 12 kB / 423.5 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.233, allocations: 0 / 423.5 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.233, allocations: 3.984 kB / 423.5 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.2354, allocations: 1.885 MB / 425.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.2354, allocations: 4 kB / 425.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004033/0.2359, allocations: 104.4 kB / 425.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/0.236, allocations: 49.62 kB / 425.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.236, allocations: 16 kB / 425.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/0.2375, allocations: 2.552 MB / 428.1 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.2375, allocations: 7.938 kB / 428.1 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.2387, allocations: 0.938 MB / 429.1 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.2391, allocations: 259.3 kB / 429.3 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.2392, allocations: 19.98 kB / 429.4 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004798/0.2397, allocations: 31.98 kB / 429.4 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.2398, allocations: 55.86 kB / 429.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.2398, allocations: 20 kB / 429.5 MB, free: 8.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.2409, allocations: 0.8383 MB / 430.3 MB, free: 7.355 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2409, allocations: 0 / 430.3 MB, free: 7.355 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009384/0.2418, allocations: 304 kB / 430.6 MB, free: 7.059 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00163/0.2435, allocations: 1.516 MB / 432.1 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.2448, allocations: 0.928 MB / 433 MB, free: 4.504 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2448, allocations: 0 / 433 MB, free: 4.504 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006008/0.2454, allocations: 468 kB / 433.5 MB, free: 4.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.2474, allocations: 305.1 kB / 433.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.2596, allocations: 8.101 MB / 441.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.2604, allocations: 1.178 MB / 443.1 MB, free: 9.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006499/0.261, allocations: 0.5813 MB / 443.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.261, allocations: 0 / 443.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.045/4.306, allocations: 35.51 MB / 479.2 MB, free: 5.625 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches