Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009857/0.0009857, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008585/0.0008585, allocations: 99.33 kB / 296.7 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.0002321, allocations: 4 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2178, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.00735/0.2252, allocations: 10.77 MB / 418.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00457/0.2298, allocations: 3.115 MB / 422 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000986/0.2309, allocations: 35.94 kB / 422.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.232, allocations: 0.5242 MB / 422.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.2333, allocations: 0.5971 MB / 423.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.2338, allocations: 251.7 kB / 423.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.2354, allocations: 2.238 MB / 425.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008776/0.2362, allocations: 0.8426 MB / 426.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007907/0.237, allocations: 0.7311 MB / 427.2 MB, free: 8.512 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005528/0.2376, allocations: 0.8087 MB / 428 MB, free: 7.699 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.2378, allocations: 108 kB / 428.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000314/0.2381, allocations: 144 kB / 428.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.2382, allocations: 314.5 kB / 428.6 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006213/0.2389, allocations: 0.9153 MB / 429.5 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.2402, allocations: 2.228 MB / 431.7 MB, free: 3.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.2402, allocations: 7.938 kB / 431.7 MB, free: 3.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2402, allocations: 3.938 kB / 431.8 MB, free: 3.973 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.324e-05/0.2403, allocations: 0 / 431.8 MB, free: 3.973 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.00257/0.2428, allocations: 1.837 MB / 433.6 MB, free: 2.078 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2429, allocations: 8.031 kB / 433.6 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.2431, allocations: 220.1 kB / 433.8 MB, free: 1.844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007247/0.2438, allocations: 290.3 kB / 434.1 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.2452, allocations: 1.107 MB / 435.2 MB, free: 404 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.2452, allocations: 119.2 kB / 435.3 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.2454, allocations: 155.9 kB / 435.5 MB, free: 128 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002553/0.2479, allocations: 1.5 MB / 437 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.912e-05/0.248, allocations: 15.83 kB / 437 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.2481, allocations: 68 kB / 437.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/0.2482, allocations: 36 kB / 437.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.2502, allocations: 1.057 MB / 438.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007602/0.2578, allocations: 6.304 MB / 444.4 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2593, allocations: 0.6389 MB / 445.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008619/0.2602, allocations: 465.7 kB / 445.5 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.2602, allocations: 8.562 kB / 445.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.2602, allocations: 39.12 kB / 445.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.335e-06/0.2603, allocations: 0 / 445.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.005103/0.2654, allocations: 2.462 MB / 448.1 MB, free: 3.074 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.2655, allocations: 111.5 kB / 448.2 MB, free: 2.938 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.2672, allocations: 1.298 MB / 449.5 MB, free: 1.625 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.2672, allocations: 37.7 kB / 449.5 MB, free: 1.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005389/0.2678, allocations: 0.8493 MB / 450.3 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.2679, allocations: 260.3 kB / 450.6 MB, free: 476 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.182e-05/0.268, allocations: 20 kB / 450.6 MB, free: 456 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2681, allocations: 349.9 kB / 451 MB, free: 100 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.2687, allocations: 290.5 kB / 451.2 MB, free: 15.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000814/0.2695, allocations: 0.7498 MB / 452 MB, free: 14.85 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.271, allocations: 1.1 MB / 453.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.271, allocations: 4 kB / 453.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002368/0.2734, allocations: 1.291 MB / 454.4 MB, free: 12.22 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.2734, allocations: 12 kB / 454.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.2734, allocations: 20.48 kB / 454.4 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005158/0.274, allocations: 142.4 kB / 454.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008139/0.2748, allocations: 263.6 kB / 454.8 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003766/0.2786, allocations: 4.328 MB / 459.1 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.2797, allocations: 64.05 kB / 459.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.2798, allocations: 55.98 kB / 459.3 MB, free: 6.938 MB / 330.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.000708/0.2805, allocations: 349.4 kB / 459.6 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/0.2809, allocations: 142.3 kB / 459.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.2828, allocations: 0.8724 MB / 460.6 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.2828, allocations: 4 kB / 460.6 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2828, allocations: 4 kB / 460.6 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2828, allocations: 3.984 kB / 460.6 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/0.2869, allocations: 2.377 MB / 463 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.287, allocations: 4.469 kB / 463 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005807/0.2876, allocations: 135.8 kB / 463.1 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004857/0.2881, allocations: 142.5 kB / 463.3 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.2881, allocations: 16 kB / 463.3 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003712/0.2918, allocations: 4.454 MB / 467.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.2919, allocations: 7.938 kB / 467.8 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.2943, allocations: 1.342 MB / 469.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005433/0.2948, allocations: 279.4 kB / 469.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/0.2951, allocations: 20 kB / 469.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006764/0.2958, allocations: 43.97 kB / 469.4 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.2959, allocations: 64.36 kB / 469.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.296, allocations: 27.98 kB / 469.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001341/0.2973, allocations: 0.8664 MB / 470.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2973, allocations: 4 kB / 470.4 MB, free: 11.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001216/0.2986, allocations: 327.9 kB / 470.7 MB, free: 10.82 MB / 346.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.002633/0.3012, allocations: 1.931 MB / 472.6 MB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.3031, allocations: 1.128 MB / 473.8 MB, free: 7.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.3031, allocations: 0 / 473.8 MB, free: 7.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3041, allocations: 0.7231 MB / 474.5 MB, free: 6.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.3064, allocations: 347.7 kB / 474.8 MB, free: 6.551 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.3227, allocations: 9.041 MB / 483.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008143/0.3235, allocations: 1.214 MB / 485.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007831/0.3243, allocations: 0.6164 MB / 485.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3243, allocations: 0 / 485.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.342/5.667, allocations: 44.96 MB / 0.5182 GB, free: 83.86 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches