Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009821/0.0009822, allocations: 104.6 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 47.92 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.08781, allocations: 46.63 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0118/0.09964, allocations: 11.6 MB / 338.3 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005968/0.1056, allocations: 3.185 MB / 341.5 MB, free: 5.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.1071, allocations: 35.94 kB / 341.5 MB, free: 5.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.1088, allocations: 0.5554 MB / 342.1 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.1107, allocations: 0.574 MB / 342.7 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007209/0.1114, allocations: 359.7 kB / 343 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002237/0.1136, allocations: 2.125 MB / 345.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.1147, allocations: 0.854 MB / 346 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009476/0.1157, allocations: 0.7467 MB / 346.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008097/0.1165, allocations: 0.8631 MB / 347.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.1167, allocations: 132 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004126/0.1171, allocations: 188 kB / 347.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.1174, allocations: 342.5 kB / 348.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008032/0.1182, allocations: 0.9367 MB / 349.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.1203, allocations: 2.581 MB / 351.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1203, allocations: 0 / 351.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1203, allocations: 0 / 351.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.429e-05/0.1203, allocations: 0 / 351.8 MB, free: 11.57 MB / 302.1 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.003286/0.1236, allocations: 2.068 MB / 353.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1237, allocations: 8.031 kB / 353.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002488/0.1239, allocations: 224 kB / 354.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007722/0.1247, allocations: 258.5 kB / 354.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.1262, allocations: 1.02 MB / 355.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.039e-05/0.1263, allocations: 127.1 kB / 355.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.1265, allocations: 155.9 kB / 355.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.1288, allocations: 1.483 MB / 357.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.361e-05/0.1288, allocations: 15.91 kB / 357.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.1289, allocations: 60 kB / 357.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/0.129, allocations: 40 kB / 357.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/0.1308, allocations: 0.9746 MB / 358.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007346/0.1381, allocations: 6.574 MB / 364.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.1389, allocations: 396.1 kB / 365.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.1394, allocations: 222 kB / 365.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.1394, allocations: 4.438 kB / 365.4 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000556/0.14, allocations: 272.8 kB / 365.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.14, allocations: 0 / 365.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003046/0.1431, allocations: 1.758 MB / 367.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.1432, allocations: 162.8 kB / 367.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.1446, allocations: 1.277 MB / 368.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1447, allocations: 37.7 kB / 368.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005507/0.1452, allocations: 0.8712 MB / 369.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1454, allocations: 209.2 kB / 369.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002467/0.1456, allocations: 226.6 kB / 370.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1458, allocations: 349.9 kB / 370.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004751/0.1463, allocations: 230.5 kB / 370.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007628/0.1471, allocations: 0.8073 MB / 371.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1484, allocations: 1.118 MB / 372.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.1484, allocations: 8 kB / 372.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002053/0.1504, allocations: 1.165 MB / 373.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.564e-05/0.1505, allocations: 41.7 kB / 373.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.1505, allocations: 23.94 kB / 373.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002093/0.1507, allocations: 65.7 kB / 373.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.1515, allocations: 271.9 kB / 374.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.1532, allocations: 2.575 MB / 376.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007769/0.154, allocations: 68.05 kB / 376.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.375e-05/0.154, allocations: 60 kB / 376.9 MB, free: 0.7969 MB / 318.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004755/0.1545, allocations: 365.1 kB / 377.3 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1546, allocations: 130.4 kB / 377.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1388/0.2934, allocations: 0.5586 MB / 378 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.2935, allocations: 6.109 kB / 378 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2935, allocations: 1.031 kB / 378 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2935, allocations: 3.859 kB / 378 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.2964, allocations: 1.87 MB / 379.8 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.2965, allocations: 4.859 kB / 379.8 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.2969, allocations: 105.8 kB / 379.9 MB, free: 51.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.2971, allocations: 49.86 kB / 380 MB, free: 51.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.2971, allocations: 15.58 kB / 380 MB, free: 51.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.2984, allocations: 2.55 MB / 382.6 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.2984, allocations: 6.562 kB / 382.6 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.2998, allocations: 0.9231 MB / 383.5 MB, free: 48.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003582/0.3002, allocations: 257.5 kB / 383.7 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.3003, allocations: 16.03 kB / 383.8 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.3008, allocations: 34.52 kB / 383.8 MB, free: 47.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.862e-05/0.3009, allocations: 56.78 kB / 383.8 MB, free: 47.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.301, allocations: 15.75 kB / 383.9 MB, free: 47.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.3021, allocations: 0.8522 MB / 384.7 MB, free: 47.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3021, allocations: 0 / 384.7 MB, free: 47.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001089/0.3032, allocations: 300.4 kB / 385 MB, free: 47.57 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001523/0.3047, allocations: 1.495 MB / 386.5 MB, free: 46.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.3061, allocations: 0.9218 MB / 387.4 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3061, allocations: 0 / 387.4 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006225/0.3068, allocations: 472.3 kB / 387.9 MB, free: 45.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.3082, allocations: 314 kB / 388.2 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/0.3244, allocations: 12.75 MB / 400.9 MB, free: 36.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/0.3251, allocations: 1.178 MB / 402.1 MB, free: 36.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008418/0.326, allocations: 175.5 kB / 402.3 MB, free: 36.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005805/0.3266, allocations: 0.5676 MB / 402.9 MB, free: 35.59 MB / 318.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3266, allocations: 0 / 402.9 MB, free: 35.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.3656, allocations: 26.33 MB / 429.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.3658, allocations: 260.6 kB / 429.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.431/2.796, allocations: 0 / 429.4 MB, free: 10.91 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches