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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007441/0.0007441, allocations: 76.36 kB / 20.67 MB, free: 3.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007835/0.0007835, allocations: 156.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9329/0.9329, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.666e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.007464/0.007481, allocations: 10.24 MB / 334.8 MB, free: 5.609 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004089/0.01157, allocations: 3.09 MB / 337.9 MB, free: 2.508 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006247/0.01219, allocations: 43.81 kB / 337.9 MB, free: 2.465 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008938/0.01309, allocations: 0.6245 MB / 338.5 MB, free: 1.836 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000924/0.01401, allocations: 0.7713 MB / 339.3 MB, free: 1.055 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.01444, allocations: 391.5 kB / 339.7 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.01584, allocations: 2.35 MB / 342 MB, free: 14.31 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006082/0.01645, allocations: 0.6029 MB / 342.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009726/0.01742, allocations: 1.313 MB / 344 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005137/0.01793, allocations: 0.6503 MB / 344.6 MB, free: 11.69 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.01809, allocations: 216 kB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002399/0.01833, allocations: 260 kB / 345.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.01853, allocations: 434.3 kB / 345.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000446/0.01897, allocations: 0.7014 MB / 346.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.02058, allocations: 2.683 MB / 348.9 MB, free: 7.402 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.02059, allocations: 0 / 348.9 MB, free: 7.402 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.02059, allocations: 0 / 348.9 MB, free: 7.402 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.0206, allocations: 3.938 kB / 348.9 MB, free: 7.398 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.001877/0.02248, allocations: 2.018 MB / 350.9 MB, free: 5.332 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.02252, allocations: 11.98 kB / 350.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.02269, allocations: 224.1 kB / 351.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003944/0.02308, allocations: 267.6 kB / 351.4 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.02412, allocations: 0.9718 MB / 352.4 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.646e-05/0.02418, allocations: 115.5 kB / 352.5 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.02431, allocations: 164.3 kB / 352.6 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.02578, allocations: 1.592 MB / 354.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.02581, allocations: 11.98 kB / 354.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.22e-05/0.02588, allocations: 64 kB / 354.3 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.0259, allocations: 39.94 kB / 354.3 MB, free: 1.746 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.02703, allocations: 0.9785 MB / 355.3 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004479/0.03151, allocations: 5.931 MB / 361.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.03199, allocations: 372.8 kB / 361.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.03224, allocations: 214.1 kB / 361.8 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.03227, allocations: 12.42 kB / 361.8 MB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.03258, allocations: 317.2 kB / 362.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 1.553e-06/0.03258, allocations: 4 kB / 362.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.001714/0.0343, allocations: 1.552 MB / 363.7 MB, free: 7.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.03436, allocations: 166.6 kB / 363.9 MB, free: 7.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.03541, allocations: 1.308 MB / 365.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.03543, allocations: 37.7 kB / 365.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.03587, allocations: 0.8934 MB / 366.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.03597, allocations: 210.3 kB / 366.3 MB, free: 5.285 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.03615, allocations: 222.8 kB / 366.5 MB, free: 5.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.03625, allocations: 353.9 kB / 366.9 MB, free: 4.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.03654, allocations: 260.2 kB / 367.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005554/0.03709, allocations: 0.9289 MB / 368.1 MB, free: 3.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008573/0.03795, allocations: 1.118 MB / 369.2 MB, free: 1.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.03796, allocations: 4 kB / 369.2 MB, free: 1.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001129/0.03909, allocations: 1.205 MB / 370.4 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.03912, allocations: 41.7 kB / 370.4 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.03913, allocations: 16 kB / 370.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001173/0.03925, allocations: 73.72 kB / 370.5 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.03966, allocations: 267.6 kB / 370.8 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.04086, allocations: 2.558 MB / 373.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.04126, allocations: 71.88 kB / 373.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-05/0.04131, allocations: 64 kB / 373.5 MB, free: 13.27 MB / 346.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 (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.00033/0.04164, allocations: 361.4 kB / 373.8 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/0.04174, allocations: 143.1 kB / 374 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005849/0.04232, allocations: 0.5435 MB / 374.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.04232, allocations: 8 kB / 374.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.04233, allocations: 7.875 kB / 374.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.04233, allocations: 0 / 374.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.04398, allocations: 1.702 MB / 376.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.04398, allocations: 4.031 kB / 376.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.04421, allocations: 111.8 kB / 376.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.029e-05/0.04428, allocations: 41.64 kB / 376.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.0443, allocations: 19.98 kB / 376.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.04546, allocations: 2.531 MB / 378.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.04546, allocations: 4 kB / 378.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008276/0.04629, allocations: 0.9197 MB / 379.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.04653, allocations: 187.1 kB / 380 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.714e-05/0.04661, allocations: 19.94 kB / 380 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.04686, allocations: 31.97 kB / 380.1 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.04693, allocations: 55.8 kB / 380.1 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.04695, allocations: 20 kB / 380.1 MB, free: 6.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007547/0.0477, allocations: 0.8461 MB / 381 MB, free: 5.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0477, allocations: 0 / 381 MB, free: 5.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006715/0.04837, allocations: 315.9 kB / 381.3 MB, free: 4.98 MB / 346.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 (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.001154/0.04953, allocations: 1.499 MB / 382.8 MB, free: 3.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008103/0.05034, allocations: 0.9224 MB / 383.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.05034, allocations: 4 kB / 383.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.05071, allocations: 462 kB / 384.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000815/0.05152, allocations: 336.2 kB / 384.5 MB, free: 1.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.06229, allocations: 10.96 MB / 395.5 MB, free: 5.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.06268, allocations: 0.5966 MB / 396.1 MB, free: 5.199 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003391/0.06302, allocations: 167.3 kB / 396.2 MB, free: 5.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.06346, allocations: 0.5667 MB / 396.8 MB, free: 4.465 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.06346, allocations: 0 / 396.8 MB, free: 4.465 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03875/0.1022, allocations: 30.16 MB / 427 MB, free: 6.617 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.096, allocations: 7.5 kB / 427 MB, free: 6.613 MB / 394.7 MB " [Timeout remaining time 652] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.172103932127357]