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.0009463/0.0009463, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009615/0.0009615, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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.01/1.01, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.916e-05/3.144e-05, allocations: 2.312 kB / 268 MB, free: 6.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.007363/0.007395, allocations: 3.359 MB / 271.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004737/0.01213, allocations: 0.7948 MB / 272.2 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002363/0.01237, allocations: 11.94 kB / 272.2 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.01256, allocations: 63.36 kB / 272.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.0128, allocations: 130.8 kB / 272.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.01317, allocations: 143.7 kB / 272.5 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.01361, allocations: 0.5056 MB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.01389, allocations: 125.3 kB / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004019/0.01429, allocations: 287.3 kB / 273.4 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.01451, allocations: 155.6 kB / 273.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.01458, allocations: 48 kB / 273.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.527e-05/0.01463, allocations: 48 kB / 273.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-05/0.01472, allocations: 103.6 kB / 273.8 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.01486, allocations: 151.7 kB / 273.9 MB, free: 456 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.01524, allocations: 318.9 kB / 274.2 MB, free: 136 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.01524, allocations: 0 / 274.2 MB, free: 136 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.01525, allocations: 4 kB / 274.3 MB, free: 132 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.01525, allocations: 4 kB / 274.3 MB, free: 128 kB / 250.7 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.0009263/0.01618, allocations: 0.7183 MB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.01623, allocations: 8.922 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.01635, allocations: 76.64 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.01673, allocations: 268.8 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.01675, allocations: 21.38 kB / 275.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.01681, allocations: 40.31 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.01731, allocations: 407.9 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.01733, allocations: 7.938 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.01736, allocations: 15.94 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.01738, allocations: 16 kB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.0176, allocations: 133.9 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.01917, allocations: 1.29 MB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.01949, allocations: 155.3 kB / 277.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.175e-05/0.01957, allocations: 43.66 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.0196, allocations: 7.984 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.01962, allocations: 37.39 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.884e-06/0.01962, allocations: 0 / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.00088/0.0205, allocations: 388.3 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.02054, allocations: 59.41 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.02075, allocations: 312.2 kB / 278.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.02077, allocations: 29.64 kB / 278.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.02091, allocations: 286.8 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.02095, allocations: 55.48 kB / 278.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.02102, allocations: 59.31 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.02116, allocations: 0.5078 MB / 279.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/0.02122, allocations: 31.98 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.02134, allocations: 136.5 kB / 279.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.02152, allocations: 184.4 kB / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.02152, allocations: 0 / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004193/0.02194, allocations: 291.7 kB / 279.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.02196, allocations: 8 kB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.02197, allocations: 4 kB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.02238, allocations: 127.5 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.011e-05/0.02247, allocations: 31.98 kB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.02485, allocations: 3.991 MB / 283.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.02497, allocations: 35.77 kB / 284 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.02498, allocations: 12 kB / 284 MB, free: 5.754 MB / 266.7 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.0001326/0.02511, allocations: 176.5 kB / 284.2 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.02515, allocations: 27.86 kB / 284.2 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.02519, allocations: 34.05 kB / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.02519, allocations: 0 / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.0252, allocations: 0 / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.0252, allocations: 0 / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.02544, allocations: 256.3 kB / 284.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.02544, allocations: 4.125 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-05/0.02548, allocations: 11.98 kB / 284.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003187/0.0258, allocations: 123.3 kB / 284.6 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.02582, allocations: 4 kB / 284.6 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.02805, allocations: 3.944 MB / 288.6 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.02805, allocations: 4 kB / 288.6 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.0284, allocations: 366.7 kB / 288.9 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.02843, allocations: 27.84 kB / 288.9 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.02845, allocations: 4.141 kB / 288.9 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.872e-05/0.02854, allocations: 24.02 kB / 289 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.02861, allocations: 19.95 kB / 289 MB, free: 432 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.02862, allocations: 4 kB / 289 MB, free: 428 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.02875, allocations: 213.1 kB / 289.2 MB, free: 212 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02875, allocations: 0 / 289.2 MB, free: 212 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003631/0.02911, allocations: 103.8 kB / 289.3 MB, free: 108 kB / 266.7 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.0001264/0.02924, allocations: 103.2 kB / 289.4 MB, free: 16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005638/0.0298, allocations: 0.5106 MB / 289.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.02981, allocations: 0.625 kB / 289.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.03003, allocations: 423.2 kB / 290.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.03031, allocations: 40.41 kB / 290.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009597/0.03127, allocations: 0.5432 MB / 290.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.28e-05/0.03133, allocations: 96.23 kB / 291 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.088e-05/0.0314, allocations: 22.3 kB / 291 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.03143, allocations: 20.5 kB / 291 MB, free: 14.23 MB / 282.7 MB Notification: Performance of SimCode: time 8.51e-07/0.03143, allocations: 0 / 291 MB, free: 14.23 MB / 282.7 MB Notification: Performance of Templates: time 0.00659/0.03802, allocations: 3.674 MB / 294.7 MB, free: 10.6 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.038837674073875]