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.001825/0.001825, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002392/0.002392, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002315/0.002315, allocations: 51.92 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3495, allocations: 53.35 MB / 431.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01018/0.3597, allocations: 8.167 MB / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005072/0.3648, allocations: 2.688 MB / 442 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008332/0.3656, allocations: 27.88 kB / 442 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.3672, allocations: 0.5715 MB / 442.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.3685, allocations: 0.4963 MB / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.369, allocations: 243.7 kB / 443.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.3708, allocations: 1.479 MB / 444.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007017/0.3715, allocations: 405.1 kB / 445.2 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000963/0.3724, allocations: 0.5875 MB / 445.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007965/0.3732, allocations: 0.595 MB / 446.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.3734, allocations: 136 kB / 446.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.3737, allocations: 172 kB / 446.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002447/0.374, allocations: 282.9 kB / 447 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006514/0.3746, allocations: 0.6648 MB / 447.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002115/0.3768, allocations: 1.731 MB / 449.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3768, allocations: 4 kB / 449.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3768, allocations: 0 / 449.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.743e-05/0.3768, allocations: 0 / 449.4 MB, free: 4.395 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002582/0.3794, allocations: 1.407 MB / 450.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3794, allocations: 8.031 kB / 450.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001837/0.3796, allocations: 156.3 kB / 450.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000671/0.3803, allocations: 196 kB / 451.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.3816, allocations: 0.661 MB / 451.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/0.3817, allocations: 81.94 kB / 451.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.3818, allocations: 99.95 kB / 452 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.3834, allocations: 0.9307 MB / 452.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.3835, allocations: 4 kB / 452.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.074e-05/0.3836, allocations: 40 kB / 452.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.3836, allocations: 24 kB / 453 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.3848, allocations: 0.6364 MB / 453.6 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005523/0.3904, allocations: 3.79 MB / 457.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.391, allocations: 343.5 kB / 457.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.3916, allocations: 253.3 kB / 458 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.3916, allocations: 4.328 kB / 458 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/0.3917, allocations: 38.89 kB / 458 MB, free: 11.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.064e-06/0.3917, allocations: 0 / 458 MB, free: 11.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002748/0.3945, allocations: 1.276 MB / 459.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.3945, allocations: 81.11 kB / 459.4 MB, free: 10 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.3957, allocations: 0.8215 MB / 460.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.3958, allocations: 29.7 kB / 460.2 MB, free: 9.137 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004743/0.3962, allocations: 0.5735 MB / 460.8 MB, free: 8.555 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3964, allocations: 166.6 kB / 461 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.3966, allocations: 130.6 kB / 461.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3967, allocations: 338 kB / 461.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003496/0.3971, allocations: 165.9 kB / 461.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006006/0.3977, allocations: 463.9 kB / 462 MB, free: 7.172 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009888/0.3987, allocations: 0.6583 MB / 462.7 MB, free: 6.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.3987, allocations: 11.94 kB / 462.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001428/0.4001, allocations: 0.7671 MB / 463.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.4001, allocations: 8 kB / 463.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.4002, allocations: 15.94 kB / 463.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.4005, allocations: 85.86 kB / 463.6 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.401, allocations: 155.7 kB / 463.7 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/0.4038, allocations: 2.923 MB / 466.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.4044, allocations: 39.94 kB / 466.7 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.4044, allocations: 36 kB / 466.7 MB, free: 2.098 MB / 366.1 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.0004177/0.4048, allocations: 257.6 kB / 467 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.405, allocations: 95.42 kB / 467.1 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009782/0.4059, allocations: 499.4 kB / 467.6 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4059, allocations: 4 kB / 467.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.4059, allocations: 0 / 467.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4059, allocations: 0 / 467.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.4082, allocations: 1.404 MB / 469 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4082, allocations: 3.938 kB / 469 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.4085, allocations: 80.11 kB / 469 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/0.4087, allocations: 65.67 kB / 469.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.4088, allocations: 16 kB / 469.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.4114, allocations: 2.916 MB / 472 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4114, allocations: 0 / 472 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.4127, allocations: 0.7745 MB / 472.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.413, allocations: 131.3 kB / 472.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.4131, allocations: 16 kB / 473 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.4135, allocations: 19.98 kB / 473 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.4136, allocations: 35.94 kB / 473 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.4136, allocations: 12 kB / 473 MB, free: 11.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008042/0.4144, allocations: 0.5732 MB / 473.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4144, allocations: 0 / 473.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.4153, allocations: 204 kB / 473.8 MB, free: 10.64 MB / 382.1 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.00172/0.417, allocations: 1.341 MB / 475.1 MB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.4182, allocations: 0.6702 MB / 475.8 MB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4182, allocations: 0.5625 kB / 475.8 MB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.4189, allocations: 433 kB / 476.2 MB, free: 8.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.42, allocations: 237 kB / 476.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.4312, allocations: 7.325 MB / 483.8 MB, free: 128 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000762/0.432, allocations: 1.001 MB / 484.8 MB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004132/0.4324, allocations: 107.2 kB / 484.9 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/0.4329, allocations: 371.3 kB / 485.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4329, allocations: 3.938 kB / 485.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06508/0.498, allocations: 19.71 MB / 0.4931 GB, free: 11.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.77, allocations: 8 kB / 0.4931 GB, free: 11.18 MB / 414.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.77034752909094]