Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 101.5 kB / 21.21 MB, free: 0.5078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 191.1 kB / 24.49 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 43.92 kB / 371.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2711, allocations: 52.18 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004822/0.2759, allocations: 3.096 MB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.2773, allocations: 0.7792 MB / 427.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.2775, allocations: 11.94 kB / 427.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.2777, allocations: 67.34 kB / 427.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.2779, allocations: 123 kB / 427.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.2782, allocations: 139.8 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005309/0.2788, allocations: 498 kB / 428.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.279, allocations: 129.4 kB / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.2793, allocations: 195.3 kB / 428.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.2795, allocations: 195.2 kB / 428.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.2796, allocations: 48 kB / 428.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.319e-05/0.2797, allocations: 48 kB / 428.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.739e-05/0.2798, allocations: 99.62 kB / 428.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.2799, allocations: 183.2 kB / 428.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006347/0.2806, allocations: 0.5682 MB / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2806, allocations: 4 kB / 429.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2806, allocations: 0 / 429.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.2806, allocations: 4 kB / 429.5 MB, free: 8.215 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001163/0.2818, allocations: 0.6301 MB / 430.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.2818, allocations: 12.03 kB / 430.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.237e-05/0.2818, allocations: 9.188 kB / 430.2 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.102e-05/0.2819, allocations: 74.72 kB / 430.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/0.282, allocations: 48.66 kB / 430.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.2825, allocations: 262.7 kB / 430.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.2825, allocations: 29.12 kB / 430.6 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/0.2825, allocations: 32 kB / 430.6 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007848/0.2833, allocations: 497 kB / 431.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.2833, allocations: 0 / 431.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.2834, allocations: 15.94 kB / 431.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.2834, allocations: 8 kB / 431.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000648/0.284, allocations: 303.8 kB / 431.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.2863, allocations: 1.287 MB / 432.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006664/0.2869, allocations: 222.7 kB / 432.9 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.2872, allocations: 92.8 kB / 433 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.2872, allocations: 0 / 433 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.2872, allocations: 34.56 kB / 433 MB, free: 4.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.92e-07/0.2872, allocations: 7.938 kB / 433.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002246/0.2895, allocations: 0.6037 MB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.2895, allocations: 59.34 kB / 433.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.2899, allocations: 312.5 kB / 434 MB, free: 3.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.29, allocations: 29.64 kB / 434.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.2902, allocations: 240.2 kB / 434.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.2902, allocations: 55.48 kB / 434.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-05/0.2903, allocations: 53.66 kB / 434.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.2905, allocations: 334.8 kB / 434.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.2907, allocations: 91.95 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.291, allocations: 157.4 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.2914, allocations: 251.3 kB / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2914, allocations: 0 / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001025/0.2925, allocations: 426.9 kB / 435.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2925, allocations: 10.5 kB / 435.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.2925, allocations: 4 kB / 435.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004792/0.293, allocations: 113.7 kB / 435.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.2931, allocations: 39.92 kB / 435.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00451/0.2977, allocations: 3.339 MB / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.2979, allocations: 39.77 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.2979, allocations: 12 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.2981, allocations: 153.7 kB / 439.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.2982, allocations: 31.81 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.825e-05/0.2982, allocations: 42.17 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2982, allocations: 4 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2982, allocations: 0 / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2982, allocations: 3.984 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003717/0.2986, allocations: 292.6 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2986, allocations: 0 / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.424e-05/0.2987, allocations: 23.86 kB / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003511/0.299, allocations: 109.6 kB / 439.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.2991, allocations: 4 kB / 439.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003714/0.3028, allocations: 3.248 MB / 443.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3028, allocations: 0 / 443.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009022/0.3037, allocations: 436.8 kB / 443.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.3037, allocations: 27.78 kB / 443.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3038, allocations: 8 kB / 443.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.304, allocations: 23.98 kB / 443.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.304, allocations: 15.97 kB / 443.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.304, allocations: 4 kB / 443.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.3043, allocations: 223.1 kB / 443.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3043, allocations: 0 / 443.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000479/0.3048, allocations: 107.7 kB / 443.9 MB, free: 8.945 MB / 350.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 (9): * Single equations (assignments): 7 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001254/0.306, allocations: 0.9712 MB / 444.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.3071, allocations: 0.4972 MB / 445.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3071, allocations: 0 / 445.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.3076, allocations: 341.6 kB / 445.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.3079, allocations: 47.89 kB / 445.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00491/0.3129, allocations: 3.248 MB / 449 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.313, allocations: 177.1 kB / 449.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.722e-05/0.3131, allocations: 22.98 kB / 449.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.3133, allocations: 103.4 kB / 449.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3133, allocations: 0 / 449.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03573/0.349, allocations: 7.459 MB / 456.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.28, allocations: 3.766 kB / 456.8 MB, free: 12.05 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.65807713707909]