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.0008992/0.0008992, allocations: 93.45 kB / 17.3 MB, free: 6.344 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.001008/0.001008, allocations: 178.2 kB / 18.2 MB, free: 5.531 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.287/1.287, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004118/0.0004118, allocations: 19.98 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08074/0.08116, allocations: 47.57 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01036/0.09156, allocations: 11.03 MB / 340.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0053/0.0969, allocations: 3.165 MB / 343.3 MB, free: 5.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008836/0.09781, allocations: 39.94 kB / 343.3 MB, free: 5.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.09929, allocations: 0.5515 MB / 343.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001864/0.1012, allocations: 0.5857 MB / 344.4 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007729/0.1019, allocations: 343.7 kB / 344.8 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.104, allocations: 2.117 MB / 346.9 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.1051, allocations: 0.8424 MB / 347.7 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.1061, allocations: 0.6881 MB / 348.4 MB, free: 188 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008565/0.107, allocations: 0.7851 MB / 349.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.1072, allocations: 100 kB / 349.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.1075, allocations: 144 kB / 349.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.1077, allocations: 302.5 kB / 349.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007686/0.1085, allocations: 0.9071 MB / 350.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002047/0.1106, allocations: 2.502 MB / 353.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1106, allocations: 3.938 kB / 353.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1106, allocations: 0 / 353.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.678e-05/0.1106, allocations: 0 / 353.1 MB, free: 11.43 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.002919/0.1136, allocations: 1.764 MB / 354.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1136, allocations: 8.031 kB / 354.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002739/0.1139, allocations: 224.1 kB / 355.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007514/0.1146, allocations: 262.5 kB / 355.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.1161, allocations: 1.024 MB / 356.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.653e-05/0.1162, allocations: 115.2 kB / 356.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.1164, allocations: 155.9 kB / 356.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.1189, allocations: 1.499 MB / 358.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.425e-05/0.1189, allocations: 3.906 kB / 358.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.1191, allocations: 64 kB / 358.2 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.1191, allocations: 40 kB / 358.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.121, allocations: 0.9863 MB / 359.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007783/0.1288, allocations: 6.594 MB / 365.9 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.1296, allocations: 407.8 kB / 366.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/0.13, allocations: 226.1 kB / 366.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.1301, allocations: 12.38 kB / 366.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005207/0.1306, allocations: 276.8 kB / 366.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.794e-06/0.1306, allocations: 0 / 366.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003117/0.1337, allocations: 1.789 MB / 368.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.1338, allocations: 162.8 kB / 368.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.1354, allocations: 1.273 MB / 370 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.1355, allocations: 41.7 kB / 370 MB, free: 9.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006097/0.1361, allocations: 0.8712 MB / 370.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.1362, allocations: 201.2 kB / 371.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1363, allocations: 101.7 kB / 371.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1365, allocations: 349.9 kB / 371.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.137, allocations: 234.5 kB / 371.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/0.1378, allocations: 0.8112 MB / 372.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.1391, allocations: 1.134 MB / 373.7 MB, free: 5.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.1391, allocations: 4 kB / 373.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001816/0.1409, allocations: 1.184 MB / 374.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.141, allocations: 41.64 kB / 374.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.141, allocations: 27.88 kB / 375 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.1412, allocations: 66.39 kB / 375 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.142, allocations: 271.5 kB / 375.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.1438, allocations: 2.583 MB / 377.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008951/0.1447, allocations: 67.89 kB / 377.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/0.1448, allocations: 60 kB / 378 MB, free: 0.9531 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.000566/0.1454, allocations: 369.3 kB / 378.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.1456, allocations: 130.4 kB / 378.5 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1555/0.301, allocations: 0.5567 MB / 379.1 MB, free: 50.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3011, allocations: 6.344 kB / 379.1 MB, free: 50.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3011, allocations: 0 / 379.1 MB, free: 50.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.3011, allocations: 4.375 kB / 379.1 MB, free: 50.2 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003105/0.3042, allocations: 1.886 MB / 380.9 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.3043, allocations: 3.625 kB / 381 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/0.3048, allocations: 108.4 kB / 381.1 MB, free: 49.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.305, allocations: 53.31 kB / 381.1 MB, free: 49.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.305, allocations: 14.86 kB / 381.1 MB, free: 49.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.3064, allocations: 2.547 MB / 383.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.3064, allocations: 3.812 kB / 383.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.3078, allocations: 0.9391 MB / 384.6 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004635/0.3083, allocations: 263.2 kB / 384.9 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3085, allocations: 16.42 kB / 384.9 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.309, allocations: 34.97 kB / 384.9 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.3092, allocations: 59.7 kB / 385 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.3092, allocations: 15.86 kB / 385 MB, free: 46.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001337/0.3106, allocations: 0.8481 MB / 385.8 MB, free: 46.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3106, allocations: 0 / 385.8 MB, free: 46.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001216/0.3118, allocations: 300.8 kB / 386.1 MB, free: 46.71 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.001782/0.3136, allocations: 1.51 MB / 387.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.3152, allocations: 0.9366 MB / 388.6 MB, free: 45.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3152, allocations: 1.75 kB / 388.6 MB, free: 45.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006522/0.3159, allocations: 481.3 kB / 389.1 MB, free: 44.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002248/0.3181, allocations: 312 kB / 389.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/0.336, allocations: 12.9 MB / 402.3 MB, free: 35.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.3366, allocations: 1.175 MB / 403.4 MB, free: 35.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007307/0.3373, allocations: 168.2 kB / 403.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004915/0.3378, allocations: 0.5745 MB / 404.2 MB, free: 34.71 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3378, allocations: 0 / 404.2 MB, free: 34.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03882/0.3767, allocations: 26.06 MB / 430.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003257/0.377, allocations: 252 kB / 430.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/2.733, allocations: 0 / 430.5 MB, free: 10.23 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