Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.0008686/0.0008686, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00129/0.002158, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0008537/0.0008537, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001622/0.002475, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.105/1.105, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1202/1.225, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.653e-05/2.832e-05, allocations: 5.828 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006349/0.006378, allocations: 5.906 MB / 250.6 MB, free: 8.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.01048, allocations: 1.618 MB / 252.3 MB, free: 6.633 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.01153, allocations: 19.94 kB / 252.3 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004547/0.01199, allocations: 170.2 kB / 252.4 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.01326, allocations: 309 kB / 252.7 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009619/0.01422, allocations: 419.2 kB / 253.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.01573, allocations: 1.43 MB / 254.6 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004188/0.01615, allocations: 289.7 kB / 254.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.0176, allocations: 0.8567 MB / 255.7 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006606/0.01826, allocations: 454.8 kB / 256.2 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000223/0.01849, allocations: 140 kB / 256.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.01886, allocations: 176 kB / 256.5 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.01901, allocations: 207.4 kB / 256.7 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003988/0.01941, allocations: 355.4 kB / 257 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.02041, allocations: 0.8604 MB / 257.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.619e-05/0.02043, allocations: 0 / 257.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.02043, allocations: 0 / 257.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.495e-05/0.02047, allocations: 0 / 257.9 MB, free: 0.957 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.001912/0.02238, allocations: 1.524 MB / 259.4 MB, free: 15.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.02241, allocations: 11.98 kB / 259.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003552/0.02277, allocations: 241.9 kB / 259.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.02378, allocations: 385 kB / 260 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.02382, allocations: 66.38 kB / 260.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.02393, allocations: 92.33 kB / 260.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/0.02472, allocations: 0.806 MB / 261 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.02474, allocations: 4.188 kB / 261 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.02479, allocations: 36.38 kB / 261 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.02481, allocations: 23.94 kB / 261.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.0252, allocations: 277.8 kB / 261.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003107/0.02831, allocations: 2.072 MB / 263.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.02874, allocations: 361.2 kB / 263.8 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.02892, allocations: 179.2 kB / 263.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.02897, allocations: 16.66 kB / 263.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.02901, allocations: 43.22 kB / 264 MB, free: 10.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 4.088e-06/0.02902, allocations: 0 / 264 MB, free: 10.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002991/0.03201, allocations: 1.523 MB / 265.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.03205, allocations: 64.05 kB / 265.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.03243, allocations: 479 kB / 266 MB, free: 8.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.03248, allocations: 41.7 kB / 266.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.03268, allocations: 389.4 kB / 266.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.03285, allocations: 273.6 kB / 266.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.03303, allocations: 146.5 kB / 266.9 MB, free: 7.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005319/0.03357, allocations: 394.5 kB / 267.3 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.03371, allocations: 97.95 kB / 267.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.03396, allocations: 240.5 kB / 267.6 MB, free: 6.859 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004293/0.03438, allocations: 431.9 kB / 268 MB, free: 6.387 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.03439, allocations: 0 / 268 MB, free: 6.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0007861/0.03517, allocations: 0.5504 MB / 268.6 MB, free: 5.828 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.0352, allocations: 4.406 kB / 268.6 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.03521, allocations: 8 kB / 268.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003792/0.03559, allocations: 147 kB / 268.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.03621, allocations: 243.6 kB / 269 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.03813, allocations: 1.97 MB / 270.9 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.03849, allocations: 35.92 kB / 271 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.03852, allocations: 27.98 kB / 271 MB, free: 3.324 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000203/0.03873, allocations: 153.7 kB / 271.1 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.284e-05/0.03882, allocations: 67.94 kB / 271.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.03892, allocations: 94.58 kB / 271.3 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.03893, allocations: 8 kB / 271.3 MB, free: 2.996 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.03894, allocations: 3.984 kB / 271.3 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.03894, allocations: 0 / 271.3 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005967/0.03954, allocations: 446.5 kB / 271.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.03955, allocations: 3.984 kB / 271.7 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.04002, allocations: 186.8 kB / 271.9 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.19e-05/0.04011, allocations: 63.45 kB / 272 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003052/0.04042, allocations: 147.9 kB / 272.1 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.858e-05/0.04047, allocations: 27.97 kB / 272.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002049/0.04252, allocations: 1.967 MB / 274.1 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.04253, allocations: 0 / 274.1 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008047/0.04333, allocations: 0.6937 MB / 274.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-05/0.0434, allocations: 19.98 kB / 274.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.04364, allocations: 47.97 kB / 274.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.04375, allocations: 52.55 kB / 274.9 MB, free: 15.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.04377, allocations: 15.98 kB / 275 MB, free: 15.22 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000185/0.04396, allocations: 220.3 kB / 275.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04396, allocations: 0 / 275.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006085/0.04457, allocations: 243.9 kB / 275.4 MB, free: 14.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000204/0.04477, allocations: 112.3 kB / 275.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008863/0.04566, allocations: 0.6454 MB / 276.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.783e-05/0.04569, allocations: 20.64 kB / 276.2 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005848/0.04627, allocations: 0.4894 MB / 276.7 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009232/0.04719, allocations: 1.319 MB / 278 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/0.05251, allocations: 1.576 MB / 279.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.05268, allocations: 191.4 kB / 279.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003708/0.05305, allocations: 89.47 kB / 279.8 MB, free: 9.984 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.05341, allocations: 229.2 kB / 280.1 MB, free: 9.758 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.05342, allocations: 0 / 280.1 MB, free: 9.758 MB / 282.7 MB Notification: Performance of Templates: time 0.1583/0.2118, allocations: 13.22 MB / 293.3 MB, free: 29.92 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.192501440644264]