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.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.001912/0.001912, allocations: 108.2 kB / 21.18 MB, free: 0.6992 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.002386/0.002386, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 52.34 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3021, allocations: 49.15 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004967/0.307, allocations: 2.982 MB / 399.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.3088, allocations: 0.7315 MB / 400.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.3091, allocations: 8.188 kB / 400.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.3093, allocations: 53.22 kB / 400.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002765/0.3096, allocations: 105.8 kB / 400.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.3099, allocations: 87.27 kB / 400.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005894/0.3105, allocations: 419.5 kB / 400.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.3108, allocations: 80.48 kB / 400.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003259/0.3112, allocations: 156.9 kB / 401 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.3114, allocations: 164.4 kB / 401.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.794e-05/0.3115, allocations: 31.78 kB / 401.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.714e-05/0.3115, allocations: 31.62 kB / 401.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.799e-05/0.3116, allocations: 78.44 kB / 401.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.3118, allocations: 175.5 kB / 401.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005277/0.3123, allocations: 389.1 kB / 401.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3123, allocations: 1.219 kB / 401.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3123, allocations: 0 / 401.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.3123, allocations: 0 / 401.8 MB, free: 5.488 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.001121/0.3135, allocations: 0.5647 MB / 402.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.3135, allocations: 13.89 kB / 402.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.424e-05/0.3136, allocations: 66.19 kB / 402.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.429e-05/0.3137, allocations: 44.05 kB / 402.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/0.3141, allocations: 221.9 kB / 402.7 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.3141, allocations: 19.53 kB / 402.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.3141, allocations: 25.78 kB / 402.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.3147, allocations: 262.2 kB / 403 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3147, allocations: 0 / 403 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.3147, allocations: 11.59 kB / 403 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.3147, allocations: 10.06 kB / 403 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005514/0.3153, allocations: 220.7 kB / 403.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.3174, allocations: 0.9369 MB / 404.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/0.318, allocations: 199.9 kB / 404.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.3182, allocations: 95.02 kB / 404.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.3183, allocations: 6.312 kB / 404.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.3183, allocations: 37.39 kB / 404.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.913e-06/0.3183, allocations: 0 / 404.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001394/0.3197, allocations: 412.7 kB / 404.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.3197, allocations: 54.22 kB / 405 MB, free: 3.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.32, allocations: 265.8 kB / 405.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.32, allocations: 27.27 kB / 405.3 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/0.3201, allocations: 179.5 kB / 405.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.3202, allocations: 75.5 kB / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3203, allocations: 51.28 kB / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.3204, allocations: 332.5 kB / 405.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3206, allocations: 80.67 kB / 406 MB, free: 2.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.3208, allocations: 109.3 kB / 406.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000359/0.3211, allocations: 195.4 kB / 406.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3211, allocations: 0 / 406.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006323/0.3218, allocations: 321.5 kB / 406.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3218, allocations: 5.188 kB / 406.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3218, allocations: 1.125 kB / 406.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003075/0.3221, allocations: 74.62 kB / 406.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.3223, allocations: 38.03 kB / 406.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/0.3245, allocations: 2.844 MB / 409.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.3249, allocations: 33.52 kB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.3249, allocations: 9.531 kB / 409.6 MB, free: 15.71 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.0002475/0.3251, allocations: 137.7 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.3252, allocations: 26.3 kB / 409.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.829e-05/0.3253, allocations: 36.19 kB / 409.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3253, allocations: 1.469 kB / 409.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.3253, allocations: 6.562 kB / 409.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3253, allocations: 5.25 kB / 409.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.3265, allocations: 0.6531 MB / 410.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3265, allocations: 0.75 kB / 410.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.3266, allocations: 33 kB / 410.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000229/0.3269, allocations: 80.41 kB / 410.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3269, allocations: 2.172 kB / 410.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/0.3297, allocations: 2.838 MB / 413.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3297, allocations: 1.281 kB / 413.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007637/0.3305, allocations: 385.1 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.262e-05/0.3306, allocations: 32.64 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.3306, allocations: 2.359 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.3309, allocations: 33.31 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.331, allocations: 20.77 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.331, allocations: 8.938 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.3312, allocations: 186.4 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3312, allocations: 5.344 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.3317, allocations: 93.89 kB / 414.1 MB, free: 11.92 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.001151/0.3329, allocations: 0.905 MB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009293/0.3338, allocations: 435.2 kB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3338, allocations: 1.531 kB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/0.3343, allocations: 342.5 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004519/0.3348, allocations: 54.91 kB / 415.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004295/0.339, allocations: 2.705 MB / 418.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.3395, allocations: 0.7653 MB / 419.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.3397, allocations: 21.52 kB / 419.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.3399, allocations: 94.48 kB / 419.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of SimCode: time 1.593e-06/0.3399, allocations: 0 / 419.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05169/0.3916, allocations: 6.642 MB / 426.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.76, allocations: 1.25 kB / 426.1 MB, free: 4.363 MB / 334.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_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","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.403452768921852]