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.00151/0.00151, allocations: 106.3 kB / 17.06 MB, free: 6.004 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.001724/0.001724, allocations: 191 kB / 18 MB, free: 5.086 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2669, 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.004162/0.2711, allocations: 3.001 MB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2723, allocations: 0.6777 MB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.2725, allocations: 4 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2727, allocations: 59.44 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.2729, allocations: 95.11 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.2732, allocations: 95.75 kB / 404.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.2736, allocations: 406.2 kB / 404.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.2739, allocations: 111.1 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.2741, allocations: 159.4 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.2743, allocations: 159.3 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.256e-05/0.2743, allocations: 32 kB / 405 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.2744, allocations: 32 kB / 405 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.84e-05/0.2745, allocations: 75.69 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.2746, allocations: 171.2 kB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.275, allocations: 392.3 kB / 405.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.275, allocations: 4 kB / 405.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.275, allocations: 0 / 405.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.275, allocations: 0 / 405.7 MB, free: 3.344 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.0009749/0.276, allocations: 0.6315 MB / 406.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.2761, allocations: 15.89 kB / 406.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.2761, allocations: 58.73 kB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.56e-05/0.2762, allocations: 44.47 kB / 406.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.2766, allocations: 279.6 kB / 406.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.2766, allocations: 20.94 kB / 406.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.325e-05/0.2767, allocations: 24.38 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.2772, allocations: 261 kB / 407 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2772, allocations: 0 / 407 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.2772, allocations: 16 kB / 407 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2772, allocations: 11.94 kB / 407 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.2777, allocations: 214.1 kB / 407.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.2792, allocations: 0.9677 MB / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.2797, allocations: 299.1 kB / 408.5 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002114/0.28, allocations: 110.3 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.28, allocations: 0 / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.28, allocations: 42.5 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.28, allocations: 0 / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001305/0.2814, allocations: 0.5542 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.2814, allocations: 55.41 kB / 409.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.2817, allocations: 262.6 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.742e-05/0.2818, allocations: 29.7 kB / 409.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.2819, allocations: 187.9 kB / 409.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.926e-05/0.282, allocations: 67 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.876e-05/0.2821, allocations: 45.94 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2823, allocations: 334.8 kB / 410.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.2825, allocations: 80.42 kB / 410.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.2827, allocations: 112 kB / 410.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.2831, allocations: 190.4 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2831, allocations: 4 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006633/0.2838, allocations: 322.6 kB / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.2838, allocations: 11.98 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.2838, allocations: 0 / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003073/0.2841, allocations: 81.67 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.2843, allocations: 35.97 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/0.2869, allocations: 3.051 MB / 414 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.2871, allocations: 23.83 kB / 414 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.2871, allocations: 4 kB / 414.1 MB, free: 10.35 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.0002069/0.2873, allocations: 141.7 kB / 414.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.075e-05/0.2874, allocations: 35.78 kB / 414.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.2875, allocations: 26.17 kB / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2875, allocations: 4 kB / 414.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.2875, allocations: 0 / 414.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2875, allocations: 3.984 kB / 414.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.2886, allocations: 0.6835 MB / 414.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2886, allocations: 3.938 kB / 414.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.2887, allocations: 27.97 kB / 415 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.2889, allocations: 69.67 kB / 415 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.2889, allocations: 4 kB / 415 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.2912, allocations: 3.039 MB / 418.1 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2913, allocations: 4.125 kB / 418.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006081/0.2919, allocations: 384.7 kB / 418.5 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/0.292, allocations: 112.8 kB / 418.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.292, allocations: 4 kB / 418.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.2923, allocations: 27.98 kB / 418.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.2924, allocations: 23.91 kB / 418.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.2924, allocations: 4 kB / 418.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001797/0.2926, allocations: 194 kB / 418.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2926, allocations: 0 / 418.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004142/0.293, allocations: 99.78 kB / 418.9 MB, free: 5.07 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.0009452/0.2939, allocations: 0.9126 MB / 419.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008716/0.2948, allocations: 453.1 kB / 420.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2948, allocations: 0 / 420.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.2953, allocations: 344.4 kB / 420.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.2957, allocations: 56.58 kB / 420.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.2996, allocations: 2.697 MB / 423.4 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3, allocations: 0.7678 MB / 424.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.3001, allocations: 18.3 kB / 424.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3003, allocations: 91.41 kB / 424.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3003, allocations: 0 / 424.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.3308, allocations: 6.536 MB / 430.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.78/20.11, allocations: 6.812 kB / 430.8 MB, free: 9.156 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