Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 47.92 kB / 370.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2509, allocations: 52.19 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01093/0.2618, allocations: 8.042 MB / 430.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004928/0.2667, allocations: 2.61 MB / 433.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007236/0.2675, allocations: 27.88 kB / 433.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.2689, allocations: 0.5793 MB / 433.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.27, allocations: 488.4 kB / 434.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/0.2705, allocations: 243.7 kB / 434.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001708/0.2723, allocations: 1.432 MB / 436 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006508/0.2729, allocations: 403.3 kB / 436.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007713/0.2737, allocations: 0.5564 MB / 437 MB, free: 208 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007636/0.2744, allocations: 0.5833 MB / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.2746, allocations: 136 kB / 437.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/0.2749, allocations: 176 kB / 437.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.2752, allocations: 275 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006218/0.2758, allocations: 0.6493 MB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.2777, allocations: 1.712 MB / 440.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2778, allocations: 0 / 440.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2778, allocations: 0 / 440.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.2778, allocations: 3.938 kB / 440.5 MB, free: 12.67 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002396/0.2802, allocations: 1.376 MB / 441.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2802, allocations: 12.03 kB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001734/0.2804, allocations: 148.3 kB / 442.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005512/0.2809, allocations: 180 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.2822, allocations: 0.6609 MB / 442.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.2823, allocations: 74 kB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.2824, allocations: 99.98 kB / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.2839, allocations: 0.9229 MB / 444 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.284, allocations: 3.953 kB / 444 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.284, allocations: 40 kB / 444 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.2841, allocations: 24 kB / 444 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.2853, allocations: 0.6246 MB / 444.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.2905, allocations: 3.772 MB / 448.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005766/0.2911, allocations: 266 kB / 448.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.2913, allocations: 136.8 kB / 448.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.2914, allocations: 0 / 448.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.349e-05/0.2914, allocations: 50.5 kB / 448.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.874e-06/0.2914, allocations: 0 / 448.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.0023/0.2937, allocations: 1.054 MB / 449.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.2938, allocations: 81.11 kB / 450 MB, free: 2.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.2949, allocations: 0.8253 MB / 450.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.2949, allocations: 41.64 kB / 450.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00047/0.2954, allocations: 0.5812 MB / 451.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.2955, allocations: 138.8 kB / 451.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.2957, allocations: 126.6 kB / 451.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.2959, allocations: 333.9 kB / 452.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.2962, allocations: 145.9 kB / 452.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000586/0.2968, allocations: 464 kB / 452.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009061/0.2977, allocations: 0.6366 MB / 453.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2977, allocations: 4 kB / 453.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001185/0.2989, allocations: 0.6928 MB / 454 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.2989, allocations: 8 kB / 454 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.299, allocations: 12 kB / 454 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.2991, allocations: 28.84 kB / 454 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/0.2996, allocations: 160 kB / 454.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.3009, allocations: 1.287 MB / 455.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/0.3014, allocations: 35.94 kB / 455.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.3014, allocations: 36 kB / 455.5 MB, free: 12.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003942/0.3018, allocations: 258.1 kB / 455.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.302, allocations: 91.38 kB / 455.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007705/0.3027, allocations: 374.2 kB / 456.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3027, allocations: 4 kB / 456.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3028, allocations: 0 / 456.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3028, allocations: 3.984 kB / 456.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.3048, allocations: 1.232 MB / 457.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.3048, allocations: 3.938 kB / 457.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.3051, allocations: 72.12 kB / 457.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.917e-05/0.3052, allocations: 32.78 kB / 457.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.836e-05/0.3053, allocations: 12 kB / 457.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.3064, allocations: 1.264 MB / 458.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.3064, allocations: 4.031 kB / 458.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3075, allocations: 0.629 MB / 459.5 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.3078, allocations: 123.4 kB / 459.6 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.3079, allocations: 8 kB / 459.6 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.3083, allocations: 27.91 kB / 459.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.3083, allocations: 31.89 kB / 459.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.3084, allocations: 12 kB / 459.7 MB, free: 8.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008718/0.3092, allocations: 0.5615 MB / 460.3 MB, free: 7.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3092, allocations: 4 kB / 460.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008622/0.3101, allocations: 188 kB / 460.5 MB, free: 7.625 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001571/0.3117, allocations: 1.204 MB / 461.7 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.3128, allocations: 0.4949 MB / 462.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3128, allocations: 1.938 kB / 462.2 MB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.3132, allocations: 262.8 kB / 462.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.3142, allocations: 209 kB / 462.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.3257, allocations: 7.127 MB / 469.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/0.3265, allocations: 0.9962 MB / 470.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.3268, allocations: 98.89 kB / 470.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005453/0.3274, allocations: 363.3 kB / 471.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3274, allocations: 0 / 471.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06349/0.3909, allocations: 18.5 MB / 489.7 MB, free: 10.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.28, allocations: 8 kB / 489.7 MB, free: 10.08 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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: 16.953047171933576]