Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 106.6 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002224/0.002224, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.97/1.97, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3701, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004718/0.3749, allocations: 2.989 MB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3764, allocations: 0.6855 MB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3767, allocations: 11.88 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.3769, allocations: 59.42 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.3771, allocations: 95.12 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.3775, allocations: 91.81 kB / 404.2 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004734/0.3779, allocations: 414.2 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.3782, allocations: 107.1 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.3784, allocations: 155.4 kB / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.3786, allocations: 159.3 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-05/0.3787, allocations: 32 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.015e-05/0.3788, allocations: 32 kB / 405.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.3788, allocations: 75.69 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001928/0.379, allocations: 171.2 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.3795, allocations: 392.3 kB / 405.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.3795, allocations: 0 / 405.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3795, allocations: 4 kB / 405.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3795, allocations: 0 / 405.7 MB, free: 3.348 MB / 318.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.001014/0.3805, allocations: 0.6237 MB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3806, allocations: 19.89 kB / 406.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.3806, allocations: 66.72 kB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.93e-05/0.3807, allocations: 40.47 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.3811, allocations: 271.6 kB / 406.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.3812, allocations: 20.94 kB / 406.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.3812, allocations: 24.38 kB / 406.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.3818, allocations: 261 kB / 407 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3818, allocations: 4 kB / 407 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.3818, allocations: 12 kB / 407 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3819, allocations: 8 kB / 407 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005013/0.3824, allocations: 218.1 kB / 407.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3841, allocations: 0.9638 MB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.3847, allocations: 299.7 kB / 408.5 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.3849, allocations: 108.8 kB / 408.6 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.3849, allocations: 0 / 408.6 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.3849, allocations: 38.56 kB / 408.6 MB, free: 192 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.385, allocations: 0 / 408.6 MB, free: 192 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001345/0.3863, allocations: 0.5653 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.3864, allocations: 55.41 kB / 409.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.3867, allocations: 258.6 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.176e-05/0.3867, allocations: 25.7 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.3869, allocations: 191.9 kB / 409.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.041e-05/0.3869, allocations: 63.02 kB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.387, allocations: 49.88 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3872, allocations: 334.8 kB / 410.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.3874, allocations: 76.42 kB / 410.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.3876, allocations: 112.1 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.388, allocations: 186.4 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.388, allocations: 3.938 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006524/0.3887, allocations: 326.7 kB / 410.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.3887, allocations: 8 kB / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3887, allocations: 0 / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003075/0.389, allocations: 85.59 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.3893, allocations: 39.97 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/0.3919, allocations: 3.048 MB / 414 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.3921, allocations: 19.83 kB / 414 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.3922, allocations: 8 kB / 414 MB, free: 10.36 MB / 334.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.0001978/0.3924, allocations: 137.8 kB / 414.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.58e-05/0.3924, allocations: 27.72 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.3925, allocations: 38.17 kB / 414.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3925, allocations: 4 kB / 414.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.3925, allocations: 0 / 414.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3925, allocations: 3.984 kB / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.3936, allocations: 0.6818 MB / 414.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3936, allocations: 0 / 414.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.3938, allocations: 35.91 kB / 415 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.394, allocations: 65.67 kB / 415 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.394, allocations: 8 kB / 415 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/0.3963, allocations: 3.051 MB / 418.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3964, allocations: 0 / 418.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.397, allocations: 380.2 kB / 418.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.706e-05/0.3971, allocations: 108.8 kB / 418.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.3972, allocations: 8 kB / 418.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.3974, allocations: 31.97 kB / 418.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.3975, allocations: 11.98 kB / 418.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.3975, allocations: 11.94 kB / 418.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.3977, allocations: 190 kB / 418.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3977, allocations: 4 kB / 418.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.3981, allocations: 95.78 kB / 418.9 MB, free: 5.078 MB / 334.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.0009482/0.3991, allocations: 0.9166 MB / 419.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008166/0.3999, allocations: 449.1 kB / 420.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3999, allocations: 3.938 kB / 420.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004303/0.4004, allocations: 344 kB / 420.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.4008, allocations: 52.59 kB / 420.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.4049, allocations: 2.703 MB / 423.4 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.4053, allocations: 0.7639 MB / 424.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.4054, allocations: 22.28 kB / 424.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.4056, allocations: 95.39 kB / 424.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4056, allocations: 0 / 424.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.4437, allocations: 6.53 MB / 430.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.13, allocations: 6.406 kB / 430.8 MB, free: 9.16 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches