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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.0008236/0.0008237, allocations: 173.5 kB / 16.72 MB, free: 5.078 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.162/1.162, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007125/0.0007126, allocations: 90.67 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002815, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1804, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007521/0.188, allocations: 10.71 MB / 385.9 MB, free: 37.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003983/0.192, allocations: 3.12 MB / 389 MB, free: 34.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006348/0.1926, allocations: 35.12 kB / 389.1 MB, free: 34.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009965/0.1937, allocations: 0.528 MB / 389.6 MB, free: 33.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009566/0.1946, allocations: 0.5912 MB / 390.2 MB, free: 33.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.1951, allocations: 252.2 kB / 390.4 MB, free: 33.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.1964, allocations: 2.241 MB / 392.7 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008153/0.1973, allocations: 0.8437 MB / 393.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005971/0.1979, allocations: 0.7233 MB / 394.2 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005158/0.1984, allocations: 0.8049 MB / 395 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.1985, allocations: 112 kB / 395.2 MB, free: 28.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002921/0.1988, allocations: 144 kB / 395.3 MB, free: 28.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.199, allocations: 314.5 kB / 395.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000524/0.1995, allocations: 0.9114 MB / 396.5 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.2007, allocations: 2.236 MB / 398.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2007, allocations: 0 / 398.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2007, allocations: 0 / 398.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.2007, allocations: 0 / 398.7 MB, free: 25.04 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002305/0.203, allocations: 1.833 MB / 400.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2031, allocations: 8.031 kB / 400.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.2033, allocations: 224.1 kB / 400.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006872/0.204, allocations: 286.4 kB / 401.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.2052, allocations: 1.111 MB / 402.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.834e-05/0.2052, allocations: 123.2 kB / 402.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.2054, allocations: 155.9 kB / 402.5 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.2074, allocations: 1.5 MB / 404 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/0.2074, allocations: 11.84 kB / 404 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.627e-05/0.2075, allocations: 71.98 kB / 404.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.2076, allocations: 40 kB / 404.1 MB, free: 19.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.2092, allocations: 1.057 MB / 405.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005492/0.2147, allocations: 6.308 MB / 411.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.216, allocations: 0.6356 MB / 412.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007286/0.2167, allocations: 470.2 kB / 412.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.2168, allocations: 8.562 kB / 412.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.2168, allocations: 47.12 kB / 412.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.284e-06/0.2168, allocations: 0 / 412.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.003839/0.2206, allocations: 2.458 MB / 415.1 MB, free: 8.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.2207, allocations: 111.5 kB / 415.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.2219, allocations: 1.298 MB / 416.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.222, allocations: 37.7 kB / 416.5 MB, free: 6.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.2223, allocations: 0.8531 MB / 417.4 MB, free: 5.762 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.2224, allocations: 260.3 kB / 417.6 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.2225, allocations: 23.94 kB / 417.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.696e-05/0.2225, allocations: 353.9 kB / 418 MB, free: 5.129 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.223, allocations: 286.5 kB / 418.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006049/0.2236, allocations: 0.7421 MB / 419 MB, free: 3.895 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.2248, allocations: 1.104 MB / 420.1 MB, free: 2.578 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.2248, allocations: 4 kB / 420.1 MB, free: 2.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001829/0.2266, allocations: 1.291 MB / 421.4 MB, free: 1.266 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.2267, allocations: 12 kB / 421.4 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2267, allocations: 16 kB / 421.4 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004102/0.2271, allocations: 142.7 kB / 421.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007163/0.2278, allocations: 259.6 kB / 421.8 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/0.2311, allocations: 4.328 MB / 426.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007537/0.2318, allocations: 63.88 kB / 426.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-05/0.2319, allocations: 56.05 kB / 426.3 MB, free: 11.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004816/0.2324, allocations: 357.4 kB / 426.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.2326, allocations: 134.5 kB / 426.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.2343, allocations: 0.8724 MB / 427.6 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.2343, allocations: 12 kB / 427.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2343, allocations: 0 / 427.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2343, allocations: 3.984 kB / 427.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.2378, allocations: 2.369 MB / 430 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.2378, allocations: 4 kB / 430 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005554/0.2384, allocations: 131.8 kB / 430.1 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004123/0.2388, allocations: 138.9 kB / 430.3 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.83e-05/0.2388, allocations: 16 kB / 430.3 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/0.2425, allocations: 4.457 MB / 434.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.2425, allocations: 7.938 kB / 434.8 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.2447, allocations: 1.342 MB / 436.1 MB, free: 1.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/0.2452, allocations: 279.4 kB / 436.4 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.2453, allocations: 24 kB / 436.4 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.2459, allocations: 43.97 kB / 436.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.246, allocations: 64.36 kB / 436.5 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.2461, allocations: 24 kB / 436.5 MB, free: 1.074 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001105/0.2472, allocations: 0.8664 MB / 437.4 MB, free: 212 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2472, allocations: 0 / 437.4 MB, free: 212 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001026/0.2482, allocations: 328 kB / 437.7 MB, free: 15.88 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002555/0.2508, allocations: 1.935 MB / 439.6 MB, free: 13.87 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.2526, allocations: 1.129 MB / 440.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2526, allocations: 0 / 440.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.2536, allocations: 0.7226 MB / 441.5 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.2558, allocations: 340.4 kB / 441.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/0.2705, allocations: 9.021 MB / 450.8 MB, free: 1.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007249/0.2712, allocations: 1.221 MB / 452.1 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007161/0.272, allocations: 0.6243 MB / 452.7 MB, free: 120 kB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.272, allocations: 0 / 452.7 MB, free: 120 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.602/4.874, allocations: 44.95 MB / 497.6 MB, free: 3.098 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches