Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009244/0.0009246, allocations: 201.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.5 MB / 244.7 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007793/0.0007792, allocations: 109.5 kB / 296.7 MB, free: 6.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002899, allocations: 8 kB / 356.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2157, allocations: 51.29 MB / 408.1 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01107/0.2268, allocations: 16.76 MB / 424.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007368/0.2342, allocations: 5.383 MB / 430.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.2365, allocations: 63.81 kB / 430.3 MB, free: 5.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.2391, allocations: 1.06 MB / 431.4 MB, free: 4.438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003223/0.2424, allocations: 0.9926 MB / 432.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.2438, allocations: 423.5 kB / 432.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003704/0.2475, allocations: 3.639 MB / 436.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.2493, allocations: 1.35 MB / 437.8 MB, free: 13.97 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002025/0.2514, allocations: 1.167 MB / 439 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001692/0.2531, allocations: 1.302 MB / 440.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003584/0.2534, allocations: 176 kB / 440.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007549/0.2542, allocations: 216 kB / 440.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004187/0.2546, allocations: 0.4937 MB / 441.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.2563, allocations: 1.491 MB / 442.6 MB, free: 9.105 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003168/0.2595, allocations: 3.622 MB / 446.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2595, allocations: 0 / 446.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2595, allocations: 0 / 446.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.912e-05/0.2596, allocations: 0 / 446.2 MB, free: 5.473 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.004679/0.2643, allocations: 2.806 MB / 449.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2643, allocations: 8.031 kB / 449.1 MB, free: 2.594 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004517/0.2648, allocations: 359.1 kB / 449.4 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.2662, allocations: 495.8 kB / 449.9 MB, free: 1.746 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.2689, allocations: 1.703 MB / 451.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.269, allocations: 189.2 kB / 451.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/0.2693, allocations: 267.8 kB / 452 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/0.2732, allocations: 2.454 MB / 454.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.47e-05/0.2733, allocations: 15.84 kB / 454.5 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/0.2735, allocations: 108 kB / 454.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.363e-05/0.2735, allocations: 67.94 kB / 454.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00284/0.2764, allocations: 1.642 MB / 456.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.2884, allocations: 10.71 MB / 467 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.2896, allocations: 1.06 MB / 468.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.2902, allocations: 371.4 kB / 468.5 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.2902, allocations: 12.66 kB / 468.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.2903, allocations: 39.22 kB / 468.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.294e-06/0.2903, allocations: 0 / 468.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.004869/0.2952, allocations: 2.957 MB / 471.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.2953, allocations: 167.2 kB / 471.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/0.2979, allocations: 2.186 MB / 473.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-05/0.298, allocations: 37.7 kB / 473.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009012/0.2989, allocations: 1.474 MB / 475.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.2991, allocations: 339.4 kB / 475.7 MB, free: 6.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.2992, allocations: 36 kB / 475.7 MB, free: 6.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2993, allocations: 373.8 kB / 476.1 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006286/0.3, allocations: 363.8 kB / 476.4 MB, free: 6.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.3011, allocations: 1.239 MB / 477.7 MB, free: 4.461 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.3029, allocations: 1.73 MB / 479.4 MB, free: 2.316 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.303, allocations: 11.94 kB / 479.4 MB, free: 2.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002766/0.3057, allocations: 1.83 MB / 481.2 MB, free: 468 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005291/0.3063, allocations: 0.9655 MB / 482.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/0.3063, allocations: 31.98 kB / 482.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.3068, allocations: 155.5 kB / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.3079, allocations: 419.2 kB / 482.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.3113, allocations: 5.364 MB / 488.1 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.3127, allocations: 91.78 kB / 488.2 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.24e-05/0.3128, allocations: 96 kB / 488.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.905e-06/0.3128, allocations: 8.875 kB / 488.3 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002266/0.3151, allocations: 1.574 MB / 489.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.871e-05/0.3151, allocations: 31.98 kB / 489.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003792/0.3155, allocations: 155.2 kB / 490.1 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.3166, allocations: 411.5 kB / 490.5 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.3198, allocations: 5.332 MB / 495.8 MB, free: 336 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.3212, allocations: 88.05 kB / 495.9 MB, free: 248 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.045e-05/0.3213, allocations: 95.98 kB / 496 MB, free: 152 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009597/0.3223, allocations: 0.5862 MB / 496.6 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.3226, allocations: 233.1 kB / 496.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.3243, allocations: 0.9224 MB / 497.7 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3243, allocations: 8 kB / 497.8 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.3243, allocations: 7.984 kB / 497.8 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3243, allocations: 7.969 kB / 497.8 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00455/0.3289, allocations: 3.139 MB / 0.4892 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.3289, allocations: 8.125 kB / 0.4892 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/0.3295, allocations: 168.5 kB / 0.4893 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003635/0.3299, allocations: 123.4 kB / 0.4895 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.053e-05/0.3299, allocations: 20 kB / 0.4895 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003656/0.3336, allocations: 5.312 MB / 0.4947 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.3336, allocations: 8 kB / 0.4947 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.3361, allocations: 1.514 MB / 0.4962 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007481/0.3368, allocations: 386.2 kB / 0.4965 GB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003698/0.3372, allocations: 27.98 kB / 0.4965 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/0.3381, allocations: 63.91 kB / 0.4966 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3383, allocations: 80.22 kB / 0.4967 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.3383, allocations: 32 kB / 0.4967 GB, free: 2.676 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002193/0.3405, allocations: 1.438 MB / 0.4981 GB, free: 1.227 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3405, allocations: 0 / 0.4981 GB, free: 1.227 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002978/0.3435, allocations: 0.9414 MB / 0.499 GB, free: 292 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1567/0.5003, allocations: 2.092 MB / 0.5011 GB, free: 85.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.5038, allocations: 2.707 MB / 0.5037 GB, free: 84.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.5038, allocations: 2.219 kB / 0.5037 GB, free: 84.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008266/0.5047, allocations: 0.8236 MB / 0.5045 GB, free: 84.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004108/0.5088, allocations: 0.5643 MB / 0.5051 GB, free: 83.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.5288, allocations: 14.46 MB / 0.5192 GB, free: 74.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008151/0.5297, allocations: 1.564 MB / 0.5207 GB, free: 73.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.5307, allocations: 1.067 MB / 0.5218 GB, free: 72.8 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5308, allocations: 0 / 0.5218 GB, free: 72.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.916/6.447, allocations: 85.57 MB / 0.6053 GB, free: 4 MB / 394.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches