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.001297/0.001297, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001487/0.001487, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.404/1.404, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.001931/0.001931, allocations: 67.91 kB / 377.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2365, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004389/0.2408, allocations: 3.045 MB / 434.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2422, allocations: 0.7595 MB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2424, allocations: 11.94 kB / 435 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.2425, allocations: 51.44 kB / 435.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.2427, allocations: 111 kB / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.243, allocations: 95.88 kB / 435.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004283/0.2434, allocations: 414.1 kB / 435.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.2436, allocations: 83.58 kB / 435.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.2438, allocations: 155.5 kB / 435.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.244, allocations: 163.3 kB / 436.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.2441, allocations: 35.94 kB / 436.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.773e-05/0.2442, allocations: 43.98 kB / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.545e-05/0.2443, allocations: 75.7 kB / 436.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.2444, allocations: 171.2 kB / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.2448, allocations: 394.8 kB / 436.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2449, allocations: 0 / 436.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2449, allocations: 0 / 436.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2449, allocations: 4 kB / 436.8 MB, free: 1.074 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.0009962/0.2459, allocations: 0.5676 MB / 437.3 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2459, allocations: 12.03 kB / 437.4 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.27e-05/0.246, allocations: 70.66 kB / 437.4 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.2461, allocations: 48.69 kB / 437.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.2465, allocations: 229.9 kB / 437.7 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.2465, allocations: 17.03 kB / 437.7 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.2466, allocations: 28.38 kB / 437.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/0.2471, allocations: 266.3 kB / 438 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2471, allocations: 0 / 438 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.2471, allocations: 12 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.2471, allocations: 8 kB / 438 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.2476, allocations: 218.4 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.2492, allocations: 0.9297 MB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.2497, allocations: 205.4 kB / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.2499, allocations: 100.4 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.2499, allocations: 4 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.25, allocations: 34.56 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.25, allocations: 3.938 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001196/0.2512, allocations: 411.2 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.2512, allocations: 51.41 kB / 440 MB, free: 13.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.2515, allocations: 265.9 kB / 440.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2515, allocations: 29.7 kB / 440.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2516, allocations: 184.2 kB / 440.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.2517, allocations: 83.3 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.2518, allocations: 41.91 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2519, allocations: 334.8 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.2521, allocations: 80.42 kB / 440.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.2523, allocations: 119.4 kB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.2527, allocations: 183 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2527, allocations: 4 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006251/0.2533, allocations: 318.9 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2533, allocations: 4 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2533, allocations: 4 kB / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002737/0.2536, allocations: 73.61 kB / 441.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.2538, allocations: 39.97 kB / 441.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/0.2562, allocations: 2.853 MB / 444.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.2564, allocations: 23.83 kB / 444.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.2564, allocations: 7.984 kB / 444.6 MB, free: 8.812 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.0001517/0.2565, allocations: 145.7 kB / 444.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.2566, allocations: 31.81 kB / 444.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.119e-05/0.2566, allocations: 30.33 kB / 444.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2566, allocations: 4 kB / 444.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2566, allocations: 3.938 kB / 444.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.2566, allocations: 0 / 444.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.2577, allocations: 0.6592 MB / 445.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2577, allocations: 0 / 445.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2578, allocations: 23.92 kB / 445.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/0.258, allocations: 73.67 kB / 445.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.258, allocations: 0 / 445.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00228/0.2603, allocations: 2.845 MB / 448.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2603, allocations: 64 / 448.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.2609, allocations: 380.5 kB / 448.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.2609, allocations: 27.8 kB / 448.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.2609, allocations: 8.188 kB / 448.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.2612, allocations: 35.97 kB / 448.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.2612, allocations: 19.91 kB / 448.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2613, allocations: 4 kB / 448.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.2614, allocations: 193.2 kB / 449 MB, free: 4.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2614, allocations: 4 kB / 449 MB, free: 4.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.2618, allocations: 99.77 kB / 449.1 MB, free: 3.914 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.0009149/0.2627, allocations: 0.9051 MB / 450 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007561/0.2635, allocations: 448.4 kB / 450.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.2635, allocations: 4 kB / 450.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.2639, allocations: 325.3 kB / 450.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.2643, allocations: 48.59 kB / 450.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.2678, allocations: 2.725 MB / 453.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.2682, allocations: 0.76 MB / 454.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.2683, allocations: 30.27 kB / 454.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.2684, allocations: 91.41 kB / 454.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2684, allocations: 0 / 454.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04055/0.309, allocations: 6.668 MB / 461.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.51, allocations: 11.23 kB / 461.1 MB, free: 7.852 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 & /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.86567543912679]