Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009395/0.0009395, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007735/0.0007736, allocations: 97.42 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003195, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.21, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002344/0.2124, allocations: 2.521 MB / 377.7 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.2133, allocations: 0.6969 MB / 378.4 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.2134, allocations: 9.25 kB / 378.4 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.2136, allocations: 36.72 kB / 378.5 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.2137, allocations: 95.75 kB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.2139, allocations: 59.3 kB / 378.6 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.2143, allocations: 382.3 kB / 379 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2144, allocations: 93.67 kB / 379.1 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2146, allocations: 128.8 kB / 379.2 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.2148, allocations: 138.8 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/0.2148, allocations: 16.66 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.491e-05/0.2149, allocations: 16.66 kB / 379.4 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.2149, allocations: 57.14 kB / 379.4 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2151, allocations: 176.8 kB / 379.6 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.2153, allocations: 273.3 kB / 379.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2153, allocations: 4 kB / 379.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2153, allocations: 0 / 379.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2153, allocations: 1.062 kB / 379.9 MB, free: 41.88 MB / 298.7 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.0008047/0.2161, allocations: 0.5907 MB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.2162, allocations: 8.688 kB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.298e-05/0.2163, allocations: 71.53 kB / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.339e-05/0.2163, allocations: 32.88 kB / 380.6 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.2166, allocations: 278.3 kB / 380.8 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.2166, allocations: 24.38 kB / 380.9 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.2166, allocations: 25.06 kB / 380.9 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004871/0.2171, allocations: 268.8 kB / 381.1 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2172, allocations: 3.938 kB / 381.2 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/0.2172, allocations: 11.97 kB / 381.2 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.2172, allocations: 6.312 kB / 381.2 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.2177, allocations: 233.5 kB / 381.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.2191, allocations: 0.992 MB / 382.4 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.2196, allocations: 304.1 kB / 382.7 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2199, allocations: 114.8 kB / 382.8 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.2199, allocations: 6.359 kB / 382.8 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.2199, allocations: 41 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.2199, allocations: 0 / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001177/0.2211, allocations: 0.5818 MB / 383.4 MB, free: 39.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.2211, allocations: 54.19 kB / 383.5 MB, free: 39.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.2214, allocations: 264.6 kB / 383.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.2214, allocations: 32.05 kB / 383.8 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.012e-05/0.2215, allocations: 182.6 kB / 383.9 MB, free: 38.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.2215, allocations: 71.97 kB / 384 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.2215, allocations: 9.312 kB / 384 MB, free: 38.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.184e-05/0.2216, allocations: 331.9 kB / 384.3 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.2218, allocations: 82.77 kB / 384.4 MB, free: 38.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.222, allocations: 116.4 kB / 384.5 MB, free: 38.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.2224, allocations: 203.2 kB / 384.7 MB, free: 38.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2224, allocations: 0.9062 kB / 384.7 MB, free: 38.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005981/0.223, allocations: 337.4 kB / 385.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2231, allocations: 7.688 kB / 385.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2231, allocations: 5.141 kB / 385.1 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.2233, allocations: 77.11 kB / 385.2 MB, free: 37.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.2235, allocations: 34.98 kB / 385.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.2251, allocations: 2.832 MB / 388 MB, free: 35.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.2253, allocations: 31.58 kB / 388.1 MB, free: 35.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.2253, allocations: 5.688 kB / 388.1 MB, free: 35.01 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.2254, allocations: 141.9 kB / 388.2 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.2254, allocations: 30.45 kB / 388.2 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.2255, allocations: 27.72 kB / 388.3 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.2255, allocations: 2.438 kB / 388.3 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2255, allocations: 5.156 kB / 388.3 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2255, allocations: 3.984 kB / 388.3 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008635/0.2264, allocations: 0.6913 MB / 389 MB, free: 34.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2264, allocations: 0 / 389 MB, free: 34.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.2265, allocations: 39.91 kB / 389 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.2267, allocations: 77.78 kB / 389.1 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.2267, allocations: 8 kB / 389.1 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.228, allocations: 2.823 MB / 391.9 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2281, allocations: 0 / 391.9 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.2285, allocations: 401.5 kB / 392.3 MB, free: 30.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.2286, allocations: 100.8 kB / 392.4 MB, free: 30.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.2286, allocations: 12 kB / 392.4 MB, free: 30.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2289, allocations: 35.97 kB / 392.4 MB, free: 30.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.2289, allocations: 27.84 kB / 392.5 MB, free: 30.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.229, allocations: 11.94 kB / 392.5 MB, free: 30.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001165/0.2291, allocations: 186 kB / 392.7 MB, free: 30.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2291, allocations: 0 / 392.7 MB, free: 30.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.2294, allocations: 87.84 kB / 392.8 MB, free: 30.13 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006911/0.2301, allocations: 0.9323 MB / 393.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005801/0.2307, allocations: 457.1 kB / 394.1 MB, free: 28.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2307, allocations: 3.938 kB / 394.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.231, allocations: 353.4 kB / 394.5 MB, free: 28.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.2314, allocations: 47.36 kB / 394.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.2333, allocations: 1.591 MB / 396.1 MB, free: 26.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.2334, allocations: 0.7639 MB / 396.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.2336, allocations: 91.34 kB / 397 MB, free: 25.73 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2336, allocations: 0 / 397 MB, free: 25.73 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.277/3.51, allocations: 6.342 MB / 403.3 MB, free: 19.37 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches