Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007904/0.0007904, allocations: 79.7 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007856/0.0007856, allocations: 170 kB / 23.96 MB, free: 0.5938 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8592/0.8592, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 3.938 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.635e-05/1.818e-05, allocations: 6.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.00565/0.005669, allocations: 7.172 MB / 331.7 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.008794, allocations: 2.49 MB / 334.2 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005651/0.009359, allocations: 27.88 kB / 334.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.01051, allocations: 0.5323 MB / 334.8 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009435/0.01146, allocations: 0.5151 MB / 335.3 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.01183, allocations: 255.7 kB / 335.6 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.01303, allocations: 1.54 MB / 337.1 MB, free: 3.367 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005007/0.01354, allocations: 371.8 kB / 337.5 MB, free: 2.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000906/0.01444, allocations: 0.8573 MB / 338.3 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/0.01483, allocations: 438.6 kB / 338.7 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.01495, allocations: 140 kB / 338.9 MB, free: 1.559 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.01516, allocations: 179.8 kB / 339.1 MB, free: 1.383 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.01529, allocations: 286.9 kB / 339.3 MB, free: 1.098 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.01559, allocations: 466.9 kB / 339.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.01684, allocations: 1.721 MB / 341.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.01684, allocations: 0 / 341.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01684, allocations: 0 / 341.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.01686, allocations: 0 / 341.5 MB, free: 14.91 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001599/0.01846, allocations: 1.403 MB / 342.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.0185, allocations: 8.031 kB / 342.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.01862, allocations: 148.4 kB / 343.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003615/0.01898, allocations: 196 kB / 343.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008599/0.01984, allocations: 0.6804 MB / 343.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.01989, allocations: 78 kB / 344 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.16e-05/0.01998, allocations: 99.95 kB / 344.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.02106, allocations: 1.031 MB / 345.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.02108, allocations: 4 kB / 345.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.264e-05/0.02114, allocations: 40 kB / 345.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.02115, allocations: 24 kB / 345.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007985/0.02195, allocations: 0.6286 MB / 345.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.02521, allocations: 3.506 MB / 349.3 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/0.02566, allocations: 339.5 kB / 349.7 MB, free: 6.402 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.02601, allocations: 249.4 kB / 349.9 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.02604, allocations: 8.328 kB / 349.9 MB, free: 6.148 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.02607, allocations: 42.83 kB / 350 MB, free: 6.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.976e-06/0.02607, allocations: 0 / 350 MB, free: 6.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001782/0.02785, allocations: 1.264 MB / 351.2 MB, free: 4.797 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.02789, allocations: 81.11 kB / 351.3 MB, free: 4.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007575/0.02865, allocations: 0.8447 MB / 352.2 MB, free: 3.844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.02868, allocations: 33.7 kB / 352.2 MB, free: 3.805 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.02895, allocations: 0.5657 MB / 352.8 MB, free: 3.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.251e-05/0.02903, allocations: 170.6 kB / 352.9 MB, free: 3.062 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.02915, allocations: 130.6 kB / 353.1 MB, free: 2.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.673e-05/0.02924, allocations: 330 kB / 353.4 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.02944, allocations: 169.9 kB / 353.5 MB, free: 2.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.02977, allocations: 489.6 kB / 354 MB, free: 1.816 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005586/0.03033, allocations: 0.6583 MB / 354.7 MB, free: 1.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.03033, allocations: 4 kB / 354.7 MB, free: 1.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0008119/0.03115, allocations: 0.7673 MB / 355.5 MB, free: 248 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.03116, allocations: 16.03 kB / 355.5 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.03117, allocations: 8 kB / 355.5 MB, free: 224 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.03135, allocations: 77.69 kB / 355.6 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.03164, allocations: 155.8 kB / 355.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.03322, allocations: 2.915 MB / 358.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/0.03357, allocations: 40.16 kB / 358.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.0336, allocations: 32 kB / 358.7 MB, free: 12.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.03388, allocations: 261.5 kB / 358.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.03396, allocations: 95.38 kB / 359 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005704/0.03453, allocations: 499.4 kB / 359.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.03454, allocations: 4 kB / 359.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.03454, allocations: 0 / 359.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.03455, allocations: 0 / 359.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.0359, allocations: 1.31 MB / 360.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.0359, allocations: 4 kB / 360.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.03607, allocations: 71.83 kB / 360.9 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.03619, allocations: 73.91 kB / 361 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.03621, allocations: 11.98 kB / 361 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.03758, allocations: 2.904 MB / 363.9 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.03758, allocations: 8.016 kB / 363.9 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.03835, allocations: 0.7594 MB / 364.7 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.03855, allocations: 127.4 kB / 364.8 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.0386, allocations: 8 kB / 364.8 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.03885, allocations: 31.92 kB / 364.8 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.03891, allocations: 31.94 kB / 364.9 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.03893, allocations: 12 kB / 364.9 MB, free: 6.195 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005/0.03943, allocations: 0.5615 MB / 365.4 MB, free: 5.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03943, allocations: 4 kB / 365.4 MB, free: 5.637 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005652/0.03999, allocations: 215.9 kB / 365.7 MB, free: 5.426 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.001024/0.04102, allocations: 1.346 MB / 367 MB, free: 4.027 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007606/0.04178, allocations: 0.6539 MB / 367.7 MB, free: 3.348 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.04178, allocations: 0 / 367.7 MB, free: 3.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.04216, allocations: 439.1 kB / 368.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.04286, allocations: 225.7 kB / 368.3 MB, free: 2.676 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007562/0.05042, allocations: 7.262 MB / 375.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.05071, allocations: 414 kB / 376 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002994/0.05101, allocations: 107.2 kB / 376.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.05132, allocations: 376.3 kB / 376.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of SimCode: time 8.51e-07/0.05132, allocations: 0 / 376.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/0.08928, allocations: 20.98 MB / 397.4 MB, free: 5.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.619, allocations: 0 / 397.4 MB, free: 5.398 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.036699938587844]