Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001761/0.001761, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.00205, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 67.89 kB / 373.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1145, allocations: 53.37 MB / 427.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005286/0.1198, allocations: 3.036 MB / 430.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.1222, allocations: 0.7556 MB / 430.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005771/0.1227, allocations: 4 kB / 430.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003855/0.1231, allocations: 59.44 kB / 430.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000537/0.1237, allocations: 107 kB / 431 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005841/0.1242, allocations: 103.8 kB / 431.1 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008362/0.1251, allocations: 406.2 kB / 431.5 MB, free: 92 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1254, allocations: 75.11 kB / 431.6 MB, free: 12 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1973/0.3226, allocations: 164.2 kB / 431.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.3228, allocations: 163.7 kB / 431.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.157e-05/0.3229, allocations: 32.19 kB / 431.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.43e-05/0.323, allocations: 36.62 kB / 432 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.503e-05/0.323, allocations: 74.25 kB / 432.1 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3232, allocations: 177.3 kB / 432.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.3236, allocations: 399.6 kB / 432.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.3236, allocations: 0.6875 kB / 432.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3236, allocations: 0 / 432.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3236, allocations: 0.5312 kB / 432.6 MB, free: 7.535 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008847/0.3245, allocations: 0.6412 MB / 433.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.3245, allocations: 10.31 kB / 433.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.184e-05/0.3245, allocations: 9.219 kB / 433.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.38e-05/0.3246, allocations: 67.02 kB / 433.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.3248, allocations: 48.16 kB / 433.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3251, allocations: 291.3 kB / 433.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.3251, allocations: 19.03 kB / 433.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.3251, allocations: 29.91 kB / 433.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.3256, allocations: 260.1 kB / 434 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3256, allocations: 2 kB / 434 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.3256, allocations: 13.22 kB / 434 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3256, allocations: 6.375 kB / 434 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.3261, allocations: 214.4 kB / 434.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3275, allocations: 0.9779 MB / 435.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/0.3279, allocations: 283.5 kB / 435.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.3281, allocations: 94.55 kB / 435.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.3281, allocations: 6.812 kB / 435.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.3282, allocations: 36.78 kB / 435.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.3282, allocations: 1.594 kB / 435.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001182/0.3293, allocations: 0.5512 MB / 436.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.05e-05/0.3294, allocations: 54.34 kB / 436.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.3296, allocations: 264.9 kB / 436.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.3296, allocations: 31.8 kB / 436.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.3297, allocations: 186.3 kB / 436.7 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.863e-05/0.3297, allocations: 74.23 kB / 436.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.3298, allocations: 45.72 kB / 436.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.298e-05/0.3299, allocations: 335.3 kB / 437.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.3301, allocations: 74.88 kB / 437.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.3303, allocations: 115.1 kB / 437.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.3306, allocations: 183 kB / 437.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3306, allocations: 1.156 kB / 437.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005992/0.3312, allocations: 324 kB / 437.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3312, allocations: 5.375 kB / 437.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3313, allocations: 1.656 kB / 437.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.3315, allocations: 77.23 kB / 437.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.3317, allocations: 42.02 kB / 437.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.3334, allocations: 3.048 MB / 441 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.3336, allocations: 23.59 kB / 441 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.3336, allocations: 10.25 kB / 441 MB, free: 2.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.3338, allocations: 150.3 kB / 441.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.3338, allocations: 30.09 kB / 441.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.3339, allocations: 31.27 kB / 441.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3339, allocations: 2.156 kB / 441.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.3339, allocations: 2.875 kB / 441.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3339, allocations: 0.75 kB / 441.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009457/0.3348, allocations: 0.6856 MB / 441.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3348, allocations: 3.844 kB / 441.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.335, allocations: 23.94 kB / 441.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.3351, allocations: 74.39 kB / 442 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.3352, allocations: 9 kB / 442 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/0.3372, allocations: 3.041 MB / 445.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3372, allocations: 4.375 kB / 445.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006684/0.3379, allocations: 382.8 kB / 445.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.349e-05/0.338, allocations: 102.5 kB / 445.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.338, allocations: 5.469 kB / 445.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.3383, allocations: 30.03 kB / 445.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.3383, allocations: 23.42 kB / 445.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.3384, allocations: 5.719 kB / 445.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.3386, allocations: 191 kB / 445.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3386, allocations: 0 / 445.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004272/0.339, allocations: 99.02 kB / 445.9 MB, free: 14.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (13): * Single equations (assignments): 11 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/0.34, allocations: 0.9145 MB / 446.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008618/0.3409, allocations: 439.8 kB / 447.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3409, allocations: 0 / 447.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000511/0.3414, allocations: 334.3 kB / 447.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.3418, allocations: 57.84 kB / 447.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004093/0.3459, allocations: 2.717 MB / 450.3 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004189/0.3463, allocations: 0.7646 MB / 451.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.3464, allocations: 23.88 kB / 451.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.3466, allocations: 91.48 kB / 451.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3466, allocations: 0 / 451.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.3782, allocations: 6.548 MB / 457.8 MB, free: 9.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.66, allocations: 5.203 kB / 457.8 MB, free: 9.141 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.48871574702207]