Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001285/0.001285, allocations: 123 kB / 17.79 MB, free: 5.246 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.001352/0.001352, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.474/1.474, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 55.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1209, allocations: 53.33 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.2531/0.374, allocations: 7.184 MB / 433.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004492/0.3785, allocations: 2.388 MB / 435.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007172/0.3792, allocations: 23.44 kB / 435.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.3808, allocations: 0.5099 MB / 436.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.3818, allocations: 410.6 kB / 436.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.3823, allocations: 206.2 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.3836, allocations: 1.201 MB / 438.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005801/0.3842, allocations: 342.1 kB / 438.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007045/0.3849, allocations: 478.4 kB / 439 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005818/0.3855, allocations: 0.4912 MB / 439.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.3856, allocations: 113.3 kB / 439.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003459/0.386, allocations: 158.6 kB / 439.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.3862, allocations: 225.6 kB / 440 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005976/0.3867, allocations: 0.5446 MB / 440.6 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.3892, allocations: 1.439 MB / 442 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3892, allocations: 0 / 442 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3892, allocations: 0 / 442 MB, free: 4.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.3892, allocations: 5.438 kB / 442 MB, free: 4.023 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00258/0.3918, allocations: 1.273 MB / 443.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.3918, allocations: 8.562 kB / 443.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.392, allocations: 125 kB / 443.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005637/0.3926, allocations: 150.1 kB / 443.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.3938, allocations: 0.655 MB / 444.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.3938, allocations: 57.78 kB / 444.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.394, allocations: 88.98 kB / 444.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3954, allocations: 0.7796 MB / 445.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/0.3954, allocations: 2.469 kB / 445.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/0.3955, allocations: 31.97 kB / 445.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.3955, allocations: 19.72 kB / 445.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.3966, allocations: 0.5195 MB / 445.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004398/0.401, allocations: 3.38 MB / 449.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.4015, allocations: 213.8 kB / 449.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.4018, allocations: 104.5 kB / 449.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.4018, allocations: 8.844 kB / 449.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.4019, allocations: 39.81 kB / 449.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.664e-06/0.4019, allocations: 1 kB / 449.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002305/0.4042, allocations: 1.05 MB / 450.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.4043, allocations: 89.58 kB / 450.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.4054, allocations: 0.7292 MB / 451.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.4054, allocations: 31.2 kB / 451.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004946/0.4059, allocations: 0.5066 MB / 451.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.406, allocations: 111.8 kB / 452 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.4062, allocations: 117.6 kB / 452.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.4065, allocations: 380.2 kB / 452.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003076/0.4068, allocations: 130.3 kB / 452.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005425/0.4073, allocations: 419.5 kB / 453 MB, free: 12.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.4082, allocations: 0.568 MB / 453.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.4082, allocations: 2.594 kB / 453.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001165/0.4093, allocations: 0.6213 MB / 454.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.4094, allocations: 9.656 kB / 454.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.4094, allocations: 11.75 kB / 454.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.4095, allocations: 30.08 kB / 454.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004559/0.41, allocations: 142.8 kB / 454.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.4112, allocations: 1.393 MB / 455.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000454/0.4116, allocations: 38.03 kB / 455.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.4117, allocations: 29.47 kB / 455.8 MB, free: 10.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0003237/0.412, allocations: 233.6 kB / 456 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.4121, allocations: 73.89 kB / 456.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007327/0.4129, allocations: 327.2 kB / 456.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.4129, allocations: 2.75 kB / 456.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4129, allocations: 0.8906 kB / 456.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.4129, allocations: 3.047 kB / 456.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.4147, allocations: 1.094 MB / 457.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.4147, allocations: 6.688 kB / 457.5 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.4149, allocations: 56.47 kB / 457.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.242e-05/0.415, allocations: 27.11 kB / 457.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.415, allocations: 10.56 kB / 457.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.4161, allocations: 1.374 MB / 459 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4161, allocations: 1.25 kB / 459 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009296/0.417, allocations: 0.5527 MB / 459.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.4173, allocations: 179.3 kB / 459.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.728e-05/0.4173, allocations: 9.453 kB / 459.7 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.4177, allocations: 19.62 kB / 459.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.4177, allocations: 26.88 kB / 459.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4177, allocations: 6.969 kB / 459.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007079/0.4185, allocations: 0.5007 MB / 460.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4185, allocations: 5.156 kB / 460.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006875/0.4191, allocations: 161.4 kB / 460.5 MB, free: 7.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * 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.001346/0.4205, allocations: 1.138 MB / 461.6 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009158/0.4214, allocations: 448.5 kB / 462 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4214, allocations: 0 / 462 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.4218, allocations: 233 kB / 462.3 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009369/0.4227, allocations: 196.8 kB / 462.5 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009839/0.4326, allocations: 6.268 MB / 468.7 MB, free: 1.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.4332, allocations: 0.9368 MB / 469.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004173/0.4336, allocations: 89.31 kB / 469.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004195/0.4341, allocations: 298.4 kB / 470 MB, free: 444 kB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4341, allocations: 0 / 470 MB, free: 444 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07254/0.5066, allocations: 15.57 MB / 485.6 MB, free: 4.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.26, allocations: 4.062 kB / 485.6 MB, free: 4.301 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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: 15.843895999947563]