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.001342/0.001342, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.001421/0.001421, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.348/1.348, allocations: 225.6 MB / 253.3 MB, free: 13.04 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 43.94 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2757, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.00994/0.2856, allocations: 8.05 MB / 431.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004938/0.2906, allocations: 2.602 MB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.2916, allocations: 27.88 kB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.2931, allocations: 0.5715 MB / 434.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.2944, allocations: 492.4 kB / 435.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.2949, allocations: 243.7 kB / 435.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.2969, allocations: 1.442 MB / 436.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007294/0.2976, allocations: 403.3 kB / 437.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008459/0.2984, allocations: 0.5486 MB / 437.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007763/0.2992, allocations: 0.5794 MB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.2994, allocations: 136 kB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000407/0.2998, allocations: 184 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.3001, allocations: 271 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007451/0.3008, allocations: 0.6531 MB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002309/0.3031, allocations: 1.7 MB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3031, allocations: 0 / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3031, allocations: 0 / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.191e-05/0.3031, allocations: 4 kB / 441.3 MB, free: 12.64 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.002845/0.306, allocations: 1.392 MB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.306, allocations: 8.031 kB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.81e-05/0.3061, allocations: 26.19 kB / 442.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.3063, allocations: 152.3 kB / 442.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005823/0.3068, allocations: 180 kB / 443 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.3082, allocations: 0.6607 MB / 443.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.349e-05/0.3083, allocations: 74 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.3084, allocations: 99.98 kB / 443.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.31, allocations: 0.919 MB / 444.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.31, allocations: 7.953 kB / 444.8 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.941e-05/0.3101, allocations: 44 kB / 444.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.3101, allocations: 24 kB / 444.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.3114, allocations: 0.6168 MB / 445.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005212/0.3166, allocations: 3.765 MB / 449.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005457/0.3171, allocations: 270.5 kB / 449.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.3174, allocations: 144 kB / 449.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.3174, allocations: 4 kB / 449.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.3175, allocations: 42.5 kB / 449.7 MB, free: 3.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.813e-06/0.3175, allocations: 0 / 449.7 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002242/0.3197, allocations: 1.058 MB / 450.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.3198, allocations: 85.11 kB / 450.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.3209, allocations: 0.8214 MB / 451.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.3209, allocations: 33.7 kB / 451.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/0.3214, allocations: 0.5773 MB / 452.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.3215, allocations: 142.8 kB / 452.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.3217, allocations: 122.6 kB / 452.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3218, allocations: 333.9 kB / 452.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/0.3222, allocations: 153.9 kB / 453 MB, free: 496 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.3227, allocations: 456 kB / 453.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00093/0.3236, allocations: 0.6366 MB / 454.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3236, allocations: 4 kB / 454.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001207/0.3249, allocations: 0.6925 MB / 454.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3249, allocations: 12 kB / 454.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.3249, allocations: 8 kB / 454.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.325, allocations: 37.38 kB / 454.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.3255, allocations: 155.8 kB / 455 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.3267, allocations: 1.287 MB / 456.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.3272, allocations: 35.94 kB / 456.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.3272, allocations: 32 kB / 456.3 MB, free: 12.73 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.3276, allocations: 262.2 kB / 456.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3277, allocations: 91.38 kB / 456.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007572/0.3285, allocations: 374.1 kB / 457.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3285, allocations: 4 kB / 457.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.3285, allocations: 0 / 457.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3285, allocations: 3.984 kB / 457.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.3304, allocations: 1.235 MB / 458.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3304, allocations: 4.219 kB / 458.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.3307, allocations: 75.91 kB / 458.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.149e-05/0.3308, allocations: 20.84 kB / 458.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.3308, allocations: 8 kB / 458.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009976/0.3318, allocations: 1.271 MB / 459.7 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3318, allocations: 7.875 kB / 459.7 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3328, allocations: 0.6329 MB / 460.3 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.3331, allocations: 115.4 kB / 460.4 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.185e-05/0.3332, allocations: 19.88 kB / 460.5 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003503/0.3335, allocations: 23.97 kB / 460.5 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.3336, allocations: 27.89 kB / 460.5 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.3336, allocations: 20 kB / 460.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007838/0.3344, allocations: 0.5576 MB / 461.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3344, allocations: 0 / 461.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007325/0.3351, allocations: 192 kB / 461.3 MB, free: 7.559 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.001459/0.3366, allocations: 1.204 MB / 462.5 MB, free: 6.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.3376, allocations: 496.3 kB / 463 MB, free: 5.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3376, allocations: 0 / 463 MB, free: 5.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004315/0.3381, allocations: 267.3 kB / 463.2 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009915/0.3391, allocations: 210.8 kB / 463.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.35, allocations: 7.127 MB / 470.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007248/0.3508, allocations: 0.9923 MB / 471.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004098/0.3512, allocations: 94.89 kB / 471.6 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.3516, allocations: 367.3 kB / 472 MB, free: 12.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3516, allocations: 0 / 472 MB, free: 12.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.4022, allocations: 18.54 MB / 490.5 MB, free: 10 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/12.99, allocations: 3.938 kB / 490.5 MB, free: 9.996 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: 17.665761626965832]