Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009942/0.0009942, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.174/1.174, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008949/0.0008948, allocations: 105.2 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000825/0.0008251, allocations: 43.94 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1885, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005091/0.1936, allocations: 5.704 MB / 379.5 MB, free: 41.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.1959, allocations: 1.445 MB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006548/0.1966, allocations: 15.03 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.197, allocations: 117.5 kB / 381.1 MB, free: 39.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000591/0.1976, allocations: 237.8 kB / 381.3 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.1981, allocations: 311.3 kB / 381.6 MB, free: 39.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008116/0.1989, allocations: 1.171 MB / 382.8 MB, free: 38.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004064/0.1993, allocations: 363.2 kB / 383.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.1997, allocations: 401.2 kB / 383.6 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.2001, allocations: 0.4885 MB / 384 MB, free: 38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.2002, allocations: 68.88 kB / 384.1 MB, free: 38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.2004, allocations: 108.3 kB / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2005, allocations: 191.4 kB / 384.4 MB, free: 37.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.2009, allocations: 491.6 kB / 384.9 MB, free: 37.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007807/0.2017, allocations: 1.342 MB / 386.2 MB, free: 36.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2017, allocations: 0 / 386.2 MB, free: 36.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2017, allocations: 1.219 kB / 386.2 MB, free: 36.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2017, allocations: 0 / 386.2 MB, free: 36.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002023/0.2037, allocations: 1.293 MB / 387.5 MB, free: 35.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2038, allocations: 13.03 kB / 387.5 MB, free: 35.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.2039, allocations: 104.4 kB / 387.6 MB, free: 35.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.2044, allocations: 0.5038 MB / 388.1 MB, free: 34.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.2044, allocations: 63.97 kB / 388.2 MB, free: 34.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2045, allocations: 83.22 kB / 388.3 MB, free: 34.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.2057, allocations: 0.8886 MB / 389.2 MB, free: 34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2057, allocations: 0 / 389.2 MB, free: 34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.238e-05/0.2058, allocations: 32 kB / 389.2 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2058, allocations: 16 kB / 389.2 MB, free: 33.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.207, allocations: 0.7847 MB / 390 MB, free: 33.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.2105, allocations: 3.056 MB / 393.1 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008399/0.2114, allocations: 0.6548 MB / 393.7 MB, free: 29.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005237/0.2119, allocations: 414.3 kB / 394.1 MB, free: 28.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.212, allocations: 16.55 kB / 394.1 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.212, allocations: 43.06 kB / 394.2 MB, free: 28.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.663e-06/0.212, allocations: 0 / 394.2 MB, free: 28.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.003401/0.2154, allocations: 2.182 MB / 396.4 MB, free: 26.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.058e-05/0.2155, allocations: 60.06 kB / 396.4 MB, free: 26.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.2158, allocations: 0.5029 MB / 396.9 MB, free: 26.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.2159, allocations: 45.64 kB / 397 MB, free: 25.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.216, allocations: 399.4 kB / 397.4 MB, free: 25.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.2161, allocations: 248.4 kB / 397.6 MB, free: 25.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.2163, allocations: 138.5 kB / 397.7 MB, free: 25.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.464e-05/0.2164, allocations: 374.8 kB / 398.1 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004924/0.2169, allocations: 309.9 kB / 398.4 MB, free: 24.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005413/0.2174, allocations: 425.1 kB / 398.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.2185, allocations: 0.7467 MB / 399.6 MB, free: 23.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2185, allocations: 0 / 399.6 MB, free: 23.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001552/0.22, allocations: 1.04 MB / 400.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2201, allocations: 8 kB / 400.6 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.2201, allocations: 4 kB / 400.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000466/0.2205, allocations: 180.3 kB / 400.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007053/0.2213, allocations: 183.8 kB / 401 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/0.2239, allocations: 2.608 MB / 403.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/0.2244, allocations: 32.03 kB / 403.6 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.2245, allocations: 27.94 kB / 403.6 MB, free: 19.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.2247, allocations: 221.7 kB / 403.9 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-05/0.2248, allocations: 75.14 kB / 403.9 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.2249, allocations: 86.19 kB / 404 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2249, allocations: 8 kB / 404 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.225, allocations: 0 / 404 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.225, allocations: 3.984 kB / 404 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006813/0.2257, allocations: 0.8416 MB / 404.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2257, allocations: 3.984 kB / 404.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006223/0.2263, allocations: 147.9 kB / 405 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004328/0.2267, allocations: 180.8 kB / 405.2 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.2268, allocations: 23.98 kB / 405.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/0.2294, allocations: 2.609 MB / 407.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2294, allocations: 0 / 407.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02436/0.2537, allocations: 12.8 MB / 420.6 MB, free: 1.598 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.888e-05/0.2539, allocations: 140.3 kB / 420.8 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.254, allocations: 16 kB / 420.8 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005299/0.2545, allocations: 51.95 kB / 420.8 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.2546, allocations: 48.58 kB / 420.9 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.2547, allocations: 27.98 kB / 420.9 MB, free: 1.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002691/0.2549, allocations: 354.9 kB / 421.2 MB, free: 0.957 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2549, allocations: 0 / 421.2 MB, free: 0.957 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008854/0.2558, allocations: 336 kB / 421.6 MB, free: 0.6289 MB / 298.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001578/0.256, allocations: 131.2 kB / 421.7 MB, free: 500 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.2579, allocations: 1.017 MB / 422.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2579, allocations: 0 / 422.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.2591, allocations: 0.6277 MB / 423.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006715/0.2598, allocations: 134.3 kB / 423.5 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004151/0.264, allocations: 2.983 MB / 426.5 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.2645, allocations: 0.9816 MB / 427.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004277/0.2649, allocations: 93.06 kB / 427.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.2652, allocations: 63.39 kB / 427.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2652, allocations: 0 / 427.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of Templates: time 0.02068/0.2859, allocations: 15.42 MB / 443 MB, free: 11.08 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches