Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_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.001886/0.001886, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001419/0.001419, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 47.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1377, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.009126/0.147, allocations: 2.956 MB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.1495, allocations: 0.7213 MB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/0.1499, allocations: 11.94 kB / 378.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.1503, allocations: 55.44 kB / 378.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003291/0.1507, allocations: 107 kB / 378.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.1511, allocations: 83.88 kB / 378.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007567/0.1519, allocations: 418 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.1523, allocations: 119.1 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004253/0.1527, allocations: 143.5 kB / 379.2 MB, free: 456 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.153, allocations: 163.3 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/0.1531, allocations: 32 kB / 379.4 MB, free: 260 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.259e-05/0.1532, allocations: 28 kB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.1533, allocations: 79.75 kB / 379.5 MB, free: 152 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2586/0.4119, allocations: 179.4 kB / 379.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008308/0.4128, allocations: 376.1 kB / 380.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.4128, allocations: 0 / 380.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4128, allocations: 0.9375 kB / 380.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.4128, allocations: 1.969 kB / 380.1 MB, free: 9.676 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.001102/0.4139, allocations: 0.6486 MB / 380.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.414, allocations: 13.14 kB / 380.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.086e-05/0.4141, allocations: 62.56 kB / 380.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.701e-05/0.4142, allocations: 41.08 kB / 380.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/0.4147, allocations: 285.6 kB / 381.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.4147, allocations: 17.88 kB / 381.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.4148, allocations: 27.94 kB / 381.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.4154, allocations: 260.9 kB / 381.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.4154, allocations: 0.8438 kB / 381.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.4154, allocations: 12.81 kB / 381.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.4154, allocations: 10.25 kB / 381.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/0.416, allocations: 216.9 kB / 381.7 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.4179, allocations: 0.9629 MB / 382.6 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006774/0.4186, allocations: 297.5 kB / 382.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.419, allocations: 111.4 kB / 383 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.4191, allocations: 5.703 kB / 383 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.4191, allocations: 38 kB / 383.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.4191, allocations: 0.5 kB / 383.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001481/0.4206, allocations: 0.5571 MB / 383.6 MB, free: 8.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.4206, allocations: 52.81 kB / 383.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.421, allocations: 259.6 kB / 383.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.421, allocations: 36.42 kB / 384 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.936e-05/0.4211, allocations: 183 kB / 384.1 MB, free: 7.699 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.519e-05/0.4212, allocations: 78.05 kB / 384.2 MB, free: 7.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.4213, allocations: 49.48 kB / 384.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.888e-05/0.4213, allocations: 335 kB / 384.6 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.4215, allocations: 77.52 kB / 384.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.4217, allocations: 111.9 kB / 384.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004112/0.4222, allocations: 189.9 kB / 385 MB, free: 7.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.4222, allocations: 1.594 kB / 385 MB, free: 7.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000671/0.4229, allocations: 325.8 kB / 385.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4229, allocations: 5.375 kB / 385.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4229, allocations: 2.062 kB / 385.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000283/0.4232, allocations: 77.91 kB / 385.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.4234, allocations: 37.84 kB / 385.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.4254, allocations: 3.049 MB / 388.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.4256, allocations: 32.09 kB / 388.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.4256, allocations: 7.109 kB / 388.5 MB, free: 4.301 MB / 318.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.0002005/0.4259, allocations: 143.1 kB / 388.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.4259, allocations: 33.64 kB / 388.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.405e-05/0.426, allocations: 26.89 kB / 388.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.426, allocations: 2.547 kB / 388.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.426, allocations: 6.094 kB / 388.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.426, allocations: 1.406 kB / 388.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.4271, allocations: 0.6864 MB / 389.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.4271, allocations: 2.156 kB / 389.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.4272, allocations: 27.19 kB / 389.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.4274, allocations: 74.89 kB / 389.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.4275, allocations: 6.062 kB / 389.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/0.4293, allocations: 3.046 MB / 392.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4293, allocations: 0 / 392.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006266/0.43, allocations: 385.6 kB / 392.9 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/0.43, allocations: 110.4 kB / 393 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.4301, allocations: 1.578 kB / 393 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.4303, allocations: 30.48 kB / 393.1 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.542e-05/0.4304, allocations: 22.97 kB / 393.1 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.4305, allocations: 9.922 kB / 393.1 MB, free: 316 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.4306, allocations: 190.3 kB / 393.3 MB, free: 200 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4307, allocations: 0 / 393.3 MB, free: 200 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.4311, allocations: 90.55 kB / 393.4 MB, free: 184 kB / 318.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.001044/0.4322, allocations: 0.9112 MB / 394.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009013/0.4331, allocations: 460.3 kB / 394.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4331, allocations: 0 / 394.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004517/0.4336, allocations: 343.5 kB / 395.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.4341, allocations: 51.66 kB / 395.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004115/0.4382, allocations: 2.705 MB / 397.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.4386, allocations: 0.7677 MB / 398.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.4388, allocations: 26.22 kB / 398.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.439, allocations: 90.84 kB / 398.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.439, allocations: 0 / 398.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03726/0.4763, allocations: 6.425 MB / 405.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12, allocations: 6.281 kB / 405.1 MB, free: 10.66 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches