Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.001843/0.001843, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002122/0.002122, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3238, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01476/0.3386, allocations: 11.77 MB / 420.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007107/0.3457, allocations: 3.246 MB / 423.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002133/0.3479, allocations: 35.94 kB / 423.9 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.3503, allocations: 0.6478 MB / 424.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003069/0.3534, allocations: 0.6743 MB / 425.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.3546, allocations: 395.5 kB / 425.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.3582, allocations: 2.249 MB / 427.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001479/0.3597, allocations: 0.9888 MB / 428.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.3614, allocations: 0.8482 MB / 429.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.363, allocations: 0.9062 MB / 430.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003708/0.3634, allocations: 216 kB / 430.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006648/0.3641, allocations: 256 kB / 431 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004403/0.3645, allocations: 426.4 kB / 431.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001341/0.3659, allocations: 1.023 MB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003121/0.369, allocations: 2.693 MB / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3691, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3691, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.276e-05/0.3691, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.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.003883/0.373, allocations: 2.117 MB / 437.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3731, allocations: 12.02 kB / 437.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002713/0.3733, allocations: 224.1 kB / 437.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008104/0.3742, allocations: 259.6 kB / 437.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.376, allocations: 1.052 MB / 438.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3761, allocations: 115.2 kB / 438.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002257/0.3763, allocations: 171.9 kB / 439.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.3789, allocations: 1.483 MB / 440.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.68e-05/0.379, allocations: 0 / 440.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.3791, allocations: 68 kB / 440.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.698e-05/0.3792, allocations: 40 kB / 440.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.3811, allocations: 0.9746 MB / 441.7 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008681/0.3898, allocations: 6.549 MB / 448.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008413/0.3907, allocations: 404.1 kB / 448.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.3911, allocations: 222.1 kB / 448.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.3912, allocations: 4.438 kB / 448.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005437/0.3917, allocations: 264.8 kB / 449.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.665e-06/0.3917, allocations: 0 / 449.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003433/0.3952, allocations: 1.788 MB / 450.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.3953, allocations: 170.8 kB / 451.1 MB, free: 6.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.397, allocations: 1.277 MB / 452.3 MB, free: 5.074 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.223e-05/0.3971, allocations: 37.7 kB / 452.4 MB, free: 5.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.3978, allocations: 0.8856 MB / 453.3 MB, free: 4.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.398, allocations: 214.3 kB / 453.5 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.3983, allocations: 230.7 kB / 453.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3985, allocations: 349.9 kB / 454 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004796/0.399, allocations: 234.5 kB / 454.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000934/0.3999, allocations: 0.7956 MB / 455.1 MB, free: 2.043 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.4014, allocations: 1.134 MB / 456.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.4014, allocations: 4 kB / 456.2 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002047/0.4034, allocations: 1.17 MB / 457.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.4035, allocations: 49.48 kB / 457.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.4035, allocations: 16 kB / 457.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.4038, allocations: 73.62 kB / 457.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007596/0.4046, allocations: 263.5 kB / 457.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.4068, allocations: 2.777 MB / 460.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4078, allocations: 68.08 kB / 460.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-05/0.4079, allocations: 64 kB / 460.7 MB, free: 11.86 MB / 382.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.0005964/0.4085, allocations: 361.3 kB / 461 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.4087, allocations: 143.1 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.4098, allocations: 0.5567 MB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.4098, allocations: 8 kB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.4098, allocations: 0 / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.4098, allocations: 0 / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.4126, allocations: 1.866 MB / 463.6 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.4126, allocations: 4 kB / 463.6 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004521/0.4131, allocations: 103.8 kB / 463.7 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001597/0.4133, allocations: 54.16 kB / 463.7 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.4133, allocations: 15.94 kB / 463.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.4154, allocations: 2.742 MB / 466.5 MB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4154, allocations: 7.938 kB / 466.5 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.4169, allocations: 0.9248 MB / 467.4 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004223/0.4173, allocations: 268.2 kB / 467.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.4175, allocations: 12 kB / 467.7 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/0.418, allocations: 35.97 kB / 467.7 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.4181, allocations: 55.81 kB / 467.8 MB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.4181, allocations: 16 kB / 467.8 MB, free: 4.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.4194, allocations: 0.85 MB / 468.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4194, allocations: 0 / 468.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00111/0.4205, allocations: 304 kB / 469 MB, free: 3.031 MB / 382.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.001977/0.4225, allocations: 1.512 MB / 470.5 MB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.4242, allocations: 0.9251 MB / 471.4 MB, free: 496 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4243, allocations: 0 / 471.4 MB, free: 496 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007019/0.425, allocations: 466.4 kB / 471.9 MB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.4265, allocations: 343.3 kB / 472.2 MB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/0.443, allocations: 10.94 MB / 483.1 MB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009076/0.4439, allocations: 1.174 MB / 484.3 MB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006641/0.4446, allocations: 171.3 kB / 484.5 MB, free: 2.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007127/0.4453, allocations: 0.5657 MB / 485 MB, free: 1.969 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4453, allocations: 0 / 485 MB, free: 1.969 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07353/0.5189, allocations: 27.79 MB / 0.5008 GB, free: 6.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.03, allocations: 14.81 kB / 0.5008 GB, free: 6.5 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches