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.001806/0.001806, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002193/0.002193, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 7.98 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 55.91 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2458, allocations: 53.42 MB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004512/0.2503, allocations: 3.042 MB / 434.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2518, allocations: 0.7595 MB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.2519, allocations: 7.938 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.2521, allocations: 55.44 kB / 435.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.2523, allocations: 111 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.2526, allocations: 91.88 kB / 435.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004471/0.253, allocations: 418.1 kB / 435.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.2532, allocations: 83.56 kB / 435.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.2535, allocations: 159.4 kB / 435.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.2537, allocations: 159.3 kB / 436.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.2538, allocations: 36 kB / 436.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.907e-05/0.2539, allocations: 40 kB / 436.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.396e-05/0.2539, allocations: 79.69 kB / 436.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.2541, allocations: 175.1 kB / 436.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.2545, allocations: 390.8 kB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2545, allocations: 8 kB / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2545, allocations: 0 / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2545, allocations: 0 / 436.8 MB, free: 1.062 MB / 334.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.001043/0.2556, allocations: 0.5714 MB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2556, allocations: 8.031 kB / 437.4 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.906e-05/0.2557, allocations: 58.73 kB / 437.4 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.2559, allocations: 48.69 kB / 437.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.2562, allocations: 229.9 kB / 437.7 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.2562, allocations: 21.03 kB / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.2563, allocations: 24.38 kB / 437.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005918/0.2569, allocations: 262.2 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2569, allocations: 0 / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.2569, allocations: 12 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2569, allocations: 4 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.2574, allocations: 222.4 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.259, allocations: 0.9337 MB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.2595, allocations: 205.4 kB / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.2597, allocations: 107.9 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2597, allocations: 4 kB / 439.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.2598, allocations: 38.55 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.2598, allocations: 0 / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001164/0.2609, allocations: 415.1 kB / 439.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.261, allocations: 55.41 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.2612, allocations: 257.9 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.2613, allocations: 33.7 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.2614, allocations: 184.2 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.2615, allocations: 79.31 kB / 440.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.881e-05/0.2615, allocations: 45.89 kB / 440.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2617, allocations: 338.8 kB / 440.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.2619, allocations: 76.42 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.2621, allocations: 111.4 kB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.2625, allocations: 187.1 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2625, allocations: 3.984 kB / 441.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006496/0.2631, allocations: 322.8 kB / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2631, allocations: 8 kB / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2631, allocations: 0 / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003036/0.2634, allocations: 77.61 kB / 441.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.2636, allocations: 39.91 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.2662, allocations: 2.833 MB / 444.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.2663, allocations: 31.91 kB / 444.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.2664, allocations: 12 kB / 444.6 MB, free: 8.809 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.0001637/0.2665, allocations: 137.8 kB / 444.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.2666, allocations: 31.75 kB / 444.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.2666, allocations: 34.27 kB / 444.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2666, allocations: 0 / 444.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.597e-06/0.2667, allocations: 4.188 kB / 444.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2667, allocations: 11.98 kB / 444.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.2677, allocations: 0.6436 MB / 445.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2677, allocations: 0 / 445.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.2678, allocations: 35.91 kB / 445.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.268, allocations: 69.67 kB / 445.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.268, allocations: 7.984 kB / 445.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/0.2705, allocations: 2.841 MB / 448.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2705, allocations: 0 / 448.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000695/0.2712, allocations: 376.5 kB / 448.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.2712, allocations: 27.81 kB / 448.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.2712, allocations: 3.984 kB / 448.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.2715, allocations: 31.98 kB / 448.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.2716, allocations: 27.89 kB / 448.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2716, allocations: 8 kB / 448.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.2718, allocations: 185.2 kB / 449 MB, free: 4.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2718, allocations: 0 / 449 MB, free: 4.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.2721, allocations: 99.77 kB / 449.1 MB, free: 3.922 MB / 350.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.001043/0.2732, allocations: 0.9129 MB / 450 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007657/0.2739, allocations: 444.4 kB / 450.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2739, allocations: 0 / 450.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004412/0.2744, allocations: 329.4 kB / 450.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.2748, allocations: 56.58 kB / 450.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/0.2784, allocations: 2.719 MB / 453.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.2788, allocations: 0.7678 MB / 454.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.643e-05/0.2789, allocations: 22.28 kB / 454.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.2791, allocations: 91.39 kB / 454.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2791, allocations: 0 / 454.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03925/0.3183, allocations: 6.672 MB / 461.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.49, allocations: 0 / 461.1 MB, free: 7.859 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.csv","/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] "Error: Could not read variable VariableResistor.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable VariableResistor.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! Error: Could not read variable R2.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable R2.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.070142554002814]