Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.001287/0.001287, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001371/0.001371, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.356/1.356, allocations: 230.6 MB / 258.3 MB, free: 8 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.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 43.94 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2353, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004285/0.2395, allocations: 3.048 MB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.2408, allocations: 0.7595 MB / 435.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.2409, allocations: 8 kB / 435.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.2411, allocations: 55.44 kB / 435.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.2412, allocations: 111 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.2415, allocations: 103.8 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.242, allocations: 406.2 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.2421, allocations: 79.56 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.2424, allocations: 159.4 kB / 436.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.2426, allocations: 167.2 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.2427, allocations: 32 kB / 436.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.958e-05/0.2427, allocations: 43.92 kB / 436.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.2428, allocations: 75.75 kB / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.243, allocations: 179.2 kB / 437.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.2434, allocations: 395.2 kB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2434, allocations: 0 / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2434, allocations: 0 / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.2434, allocations: 0 / 437.5 MB, free: 1.238 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.0009742/0.2444, allocations: 0.5676 MB / 438.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.2444, allocations: 11.97 kB / 438.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.999e-05/0.2445, allocations: 8.844 kB / 438.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.545e-05/0.2445, allocations: 62.73 kB / 438.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.2447, allocations: 52.69 kB / 438.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.245, allocations: 221.9 kB / 438.4 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.2451, allocations: 25.03 kB / 438.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/0.2451, allocations: 24.38 kB / 438.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.2456, allocations: 262 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2456, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.2457, allocations: 16 kB / 438.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.2457, allocations: 4 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.2461, allocations: 222.5 kB / 439 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2479, allocations: 0.9375 MB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.2483, allocations: 198.6 kB / 440.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.2485, allocations: 99.8 kB / 440.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2486, allocations: 4 kB / 440.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.2486, allocations: 38.56 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.2486, allocations: 0 / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001212/0.2498, allocations: 413 kB / 440.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2499, allocations: 55.41 kB / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.2501, allocations: 261.8 kB / 441 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.2502, allocations: 33.7 kB / 441 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.2503, allocations: 184.2 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.268e-05/0.2504, allocations: 75.31 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.625e-05/0.2505, allocations: 49.89 kB / 441.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2506, allocations: 338.8 kB / 441.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.2508, allocations: 76.42 kB / 441.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.251, allocations: 111.4 kB / 441.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/0.2514, allocations: 195 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2514, allocations: 3.938 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000664/0.2521, allocations: 322.9 kB / 442.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2521, allocations: 8 kB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2521, allocations: 0 / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.2524, allocations: 69.67 kB / 442.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.2526, allocations: 39.97 kB / 442.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/0.2551, allocations: 2.837 MB / 445.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.2554, allocations: 35.91 kB / 445.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.2554, allocations: 4 kB / 445.3 MB, free: 8.969 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.0002109/0.2556, allocations: 141.7 kB / 445.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.2556, allocations: 27.81 kB / 445.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.551e-05/0.2557, allocations: 34.27 kB / 445.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2557, allocations: 0 / 445.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.709e-06/0.2557, allocations: 4 kB / 445.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.2557, allocations: 7.984 kB / 445.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.2568, allocations: 0.6528 MB / 446.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2568, allocations: 0 / 446.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.257, allocations: 32.16 kB / 446.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/0.2572, allocations: 77.67 kB / 446.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.2572, allocations: 0 / 446.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/0.2597, allocations: 2.841 MB / 449.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2597, allocations: 0 / 449.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007326/0.2604, allocations: 383.5 kB / 449.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.2605, allocations: 27.8 kB / 449.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.2605, allocations: 7.984 kB / 449.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.2608, allocations: 31.98 kB / 449.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.2609, allocations: 23.95 kB / 449.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2609, allocations: 4 kB / 449.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.2611, allocations: 189.2 kB / 449.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2611, allocations: 0 / 449.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004731/0.2616, allocations: 99.83 kB / 449.9 MB, free: 4.078 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.001056/0.2627, allocations: 0.916 MB / 450.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.2636, allocations: 441 kB / 451.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2636, allocations: 0 / 451.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.264, allocations: 333.4 kB / 451.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004058/0.2644, allocations: 59.62 kB / 451.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/0.2684, allocations: 2.711 MB / 454.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.2688, allocations: 0.7639 MB / 455.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.2689, allocations: 22.3 kB / 455.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.269, allocations: 99.38 kB / 455.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.269, allocations: 0 / 455.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03227/0.3013, allocations: 6.707 MB / 461.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.33, allocations: 8.047 kB / 461.9 MB, free: 8.023 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.802827418025117]