Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_cpp_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/Complex trunk/package.mo): time 0.000902/0.000902, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007626/0.0007625, allocations: 98.86 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 11.98 kB / 356.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2072, 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_QuasiStatic): time 0.007197/0.2145, allocations: 10.41 MB / 418.5 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004384/0.2189, allocations: 3.065 MB / 421.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008883/0.2198, allocations: 39.88 kB / 421.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.221, allocations: 0.5125 MB / 422.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.2221, allocations: 0.5535 MB / 422.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.2227, allocations: 259.7 kB / 423 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.224, allocations: 2.079 MB / 425.1 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008245/0.2248, allocations: 0.8424 MB / 425.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006337/0.2255, allocations: 0.6728 MB / 426.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.226, allocations: 0.7464 MB / 427.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.2261, allocations: 100 kB / 427.4 MB, free: 8.348 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002938/0.2264, allocations: 140 kB / 427.5 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.2266, allocations: 290.6 kB / 427.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005383/0.2272, allocations: 0.8687 MB / 428.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.2283, allocations: 2.103 MB / 430.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2283, allocations: 4 kB / 430.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2283, allocations: 0 / 430.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.2284, allocations: 0 / 430.8 MB, free: 4.934 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.002269/0.2306, allocations: 1.764 MB / 432.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2307, allocations: 8.031 kB / 432.6 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.2309, allocations: 220.1 kB / 432.8 MB, free: 2.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006066/0.2315, allocations: 266.4 kB / 433.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.2326, allocations: 1.017 MB / 434.1 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.04e-05/0.2327, allocations: 119.2 kB / 434.2 MB, free: 1.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.2328, allocations: 163.8 kB / 434.3 MB, free: 1.273 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.2349, allocations: 1.476 MB / 435.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-05/0.2349, allocations: 19.78 kB / 435.8 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.2351, allocations: 60 kB / 435.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.974e-05/0.2351, allocations: 40 kB / 435.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.2368, allocations: 0.9747 MB / 436.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007218/0.244, allocations: 6.594 MB / 443.5 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007689/0.2448, allocations: 404.2 kB / 443.9 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/0.2452, allocations: 227.7 kB / 444.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.2453, allocations: 4.438 kB / 444.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005096/0.2458, allocations: 276.8 kB / 444.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.665e-06/0.2458, allocations: 0 / 444.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002903/0.2487, allocations: 1.781 MB / 446.2 MB, free: 4.875 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.2488, allocations: 158.8 kB / 446.3 MB, free: 4.684 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.2503, allocations: 1.273 MB / 447.6 MB, free: 3.395 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.2504, allocations: 37.7 kB / 447.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005769/0.251, allocations: 0.8635 MB / 448.5 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.2511, allocations: 205.2 kB / 448.7 MB, free: 2.273 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.2512, allocations: 24 kB / 448.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2513, allocations: 357.9 kB / 449.1 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.2517, allocations: 226.5 kB / 449.3 MB, free: 1.672 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/0.2525, allocations: 0.8034 MB / 450.1 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.2538, allocations: 1.122 MB / 451.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.2538, allocations: 8 kB / 451.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001705/0.2555, allocations: 1.177 MB / 452.4 MB, free: 14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.2555, allocations: 41.7 kB / 452.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.2556, allocations: 23.94 kB / 452.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002155/0.2558, allocations: 69.69 kB / 452.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007431/0.2565, allocations: 263.6 kB / 452.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.2584, allocations: 2.575 MB / 455.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008001/0.2592, allocations: 72.03 kB / 455.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/0.2593, allocations: 64 kB / 455.5 MB, free: 10.62 MB / 330.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.0005157/0.2598, allocations: 361.2 kB / 455.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.26, allocations: 126.4 kB / 456 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009755/0.2609, allocations: 0.5723 MB / 456.6 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.261, allocations: 11.98 kB / 456.6 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.261, allocations: 0 / 456.6 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.261, allocations: 3.984 kB / 456.6 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.2634, allocations: 1.889 MB / 458.5 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.2635, allocations: 4 kB / 458.5 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.2639, allocations: 103.9 kB / 458.6 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.264, allocations: 54.08 kB / 458.6 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.2641, allocations: 16 kB / 458.6 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.2656, allocations: 2.56 MB / 461.2 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2656, allocations: 4.25 kB / 461.2 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.2669, allocations: 0.9381 MB / 462.1 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.2673, allocations: 255.5 kB / 462.4 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.2674, allocations: 16 kB / 462.4 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.2679, allocations: 35.97 kB / 462.4 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.268, allocations: 47.88 kB / 462.5 MB, free: 3.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.268, allocations: 27.94 kB / 462.5 MB, free: 3.109 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001108/0.2692, allocations: 0.8344 MB / 463.3 MB, free: 2.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2692, allocations: 0 / 463.3 MB, free: 2.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009766/0.2702, allocations: 308 kB / 463.6 MB, free: 1.973 MB / 330.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.001675/0.2718, allocations: 1.512 MB / 465.2 MB, free: 388 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.2733, allocations: 0.9256 MB / 466.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2733, allocations: 0 / 466.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005962/0.2739, allocations: 458.2 kB / 466.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.2758, allocations: 325.8 kB / 466.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.2883, allocations: 8.103 MB / 475 MB, free: 5.887 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008081/0.2891, allocations: 1.178 MB / 476.1 MB, free: 4.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000729/0.2899, allocations: 0.5696 MB / 476.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2899, allocations: 4 kB / 476.7 MB, free: 4.105 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.106/4.396, allocations: 35.52 MB / 0.5002 GB, free: 0.5273 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches