Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001305/0.001305, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001312/0.001312, allocations: 190.6 kB / 21.43 MB, free: 1.641 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 / 249.8 MB, free: 3.605 MB / 190.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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 366.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09705, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01002/0.1071, allocations: 8.128 MB / 426.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004611/0.1117, allocations: 2.637 MB / 429.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006937/0.1124, allocations: 31.81 kB / 429.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.1139, allocations: 0.5753 MB / 429.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001129/0.115, allocations: 0.4886 MB / 430.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.1155, allocations: 251.7 kB / 430.6 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.1171, allocations: 1.471 MB / 432.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000627/0.1177, allocations: 398.8 kB / 432.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007462/0.1185, allocations: 0.5798 MB / 433 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007136/0.1192, allocations: 0.5872 MB / 433.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.1194, allocations: 144 kB / 433.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003082/0.1197, allocations: 176 kB / 433.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002449/0.1199, allocations: 282.9 kB / 434.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006313/0.1205, allocations: 0.6609 MB / 434.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001923/0.1225, allocations: 1.731 MB / 436.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1225, allocations: 4 kB / 436.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1225, allocations: 0 / 436.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.311e-05/0.1225, allocations: 4 kB / 436.6 MB, free: 10.37 MB / 366.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.002496/0.125, allocations: 1.483 MB / 438.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.125, allocations: 8.031 kB / 438.1 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.693e-05/0.1251, allocations: 26.19 kB / 438.1 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001731/0.1252, allocations: 152.4 kB / 438.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006545/0.1259, allocations: 200 kB / 438.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.1271, allocations: 0.7458 MB / 439.2 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.363e-05/0.1272, allocations: 78 kB / 439.3 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1273, allocations: 96 kB / 439.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.1289, allocations: 0.9307 MB / 440.3 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.129, allocations: 7.953 kB / 440.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.244e-05/0.1291, allocations: 40 kB / 440.4 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.1291, allocations: 28 kB / 440.4 MB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.1303, allocations: 0.6324 MB / 441 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.1355, allocations: 3.893 MB / 444.9 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007176/0.1362, allocations: 420.6 kB / 445.3 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.1368, allocations: 261.2 kB / 445.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.1369, allocations: 8.312 kB / 445.6 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.1369, allocations: 42.83 kB / 445.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.1369, allocations: 0 / 445.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.1876/0.3245, allocations: 1.408 MB / 447 MB, free: 29.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.3245, allocations: 86.11 kB / 447.1 MB, free: 29.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009351/0.3255, allocations: 0.8235 MB / 447.9 MB, free: 29.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3255, allocations: 31.64 kB / 448 MB, free: 29.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.3257, allocations: 0.5673 MB / 448.5 MB, free: 29.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.3258, allocations: 169 kB / 448.7 MB, free: 29.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.326, allocations: 132.8 kB / 448.8 MB, free: 29.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.326, allocations: 331.8 kB / 449.2 MB, free: 29.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.3263, allocations: 167.9 kB / 449.3 MB, free: 29.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.3267, allocations: 464.3 kB / 449.8 MB, free: 28.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006757/0.3274, allocations: 0.6573 MB / 450.4 MB, free: 28.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3274, allocations: 5.812 kB / 450.4 MB, free: 28.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001073/0.3285, allocations: 0.7764 MB / 451.2 MB, free: 28.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3285, allocations: 8.688 kB / 451.2 MB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3285, allocations: 11.27 kB / 451.2 MB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/0.3287, allocations: 78.72 kB / 451.3 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.3292, allocations: 160.9 kB / 451.5 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.3308, allocations: 3.142 MB / 454.6 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/0.3313, allocations: 35.84 kB / 454.7 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.3313, allocations: 36.62 kB / 454.7 MB, free: 25.37 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.0003037/0.3316, allocations: 258.1 kB / 454.9 MB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3317, allocations: 93.12 kB / 455 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008189/0.3325, allocations: 487.9 kB / 455.5 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.3326, allocations: 7.75 kB / 455.5 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3326, allocations: 0 / 455.5 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3326, allocations: 3.953 kB / 455.5 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/0.3345, allocations: 1.445 MB / 457 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3345, allocations: 2.938 kB / 457 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.3348, allocations: 71.19 kB / 457 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.335, allocations: 71.56 kB / 457.1 MB, free: 24.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.335, allocations: 13.64 kB / 457.1 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.3367, allocations: 3.124 MB / 460.2 MB, free: 21.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3367, allocations: 2.156 kB / 460.2 MB, free: 21.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.3378, allocations: 0.7758 MB / 461 MB, free: 20.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.338, allocations: 201 kB / 461.2 MB, free: 20.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.89e-05/0.3381, allocations: 13.56 kB / 461.2 MB, free: 20.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004119/0.3385, allocations: 31.14 kB / 461.3 MB, free: 20.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.607e-05/0.3386, allocations: 33.81 kB / 461.3 MB, free: 20.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.3386, allocations: 15.34 kB / 461.3 MB, free: 20.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007116/0.3393, allocations: 0.5643 MB / 461.9 MB, free: 20.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3393, allocations: 0 / 461.9 MB, free: 20.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008091/0.3401, allocations: 200.8 kB / 462.1 MB, free: 20.13 MB / 366.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.001303/0.3414, allocations: 1.343 MB / 463.4 MB, free: 19.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.3424, allocations: 0.6616 MB / 464.1 MB, free: 18.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3424, allocations: 1.438 kB / 464.1 MB, free: 18.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005342/0.343, allocations: 429.6 kB / 464.5 MB, free: 18.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009812/0.344, allocations: 225.2 kB / 464.7 MB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008896/0.3528, allocations: 7.315 MB / 472 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.3533, allocations: 1.01 MB / 473 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004279/0.3537, allocations: 103.5 kB / 473.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.3541, allocations: 373.5 kB / 473.5 MB, free: 13 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3541, allocations: 0 / 473.5 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04938/0.4035, allocations: 19.26 MB / 492.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.71, allocations: 4 kB / 492.8 MB, free: 2.113 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.6633648800198]