Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 225.7 MB / 243.2 MB, free: 8.43 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007532/0.0007534, allocations: 90.62 kB / 294.4 MB, free: 9.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000229/0.0002291, allocations: 7.938 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1904, allocations: 50.42 MB / 404.6 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.003843/0.1942, allocations: 5.276 MB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.1961, allocations: 1.784 MB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002761/0.1964, allocations: 15.94 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.1966, allocations: 127 kB / 411.8 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003662/0.197, allocations: 245.9 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.1975, allocations: 363.6 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007082/0.1982, allocations: 1.309 MB / 413.7 MB, free: 22.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003611/0.1985, allocations: 362.9 kB / 414 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.1989, allocations: 414.4 kB / 414.4 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.1992, allocations: 0.4899 MB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-05/0.1993, allocations: 56 kB / 415 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.1995, allocations: 91.98 kB / 415.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1996, allocations: 191.1 kB / 415.3 MB, free: 20.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.1999, allocations: 0.5302 MB / 415.8 MB, free: 19.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007198/0.2007, allocations: 1.426 MB / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2007, allocations: 0 / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2007, allocations: 4 kB / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2007, allocations: 0 / 417.2 MB, free: 18.52 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.0018/0.2025, allocations: 1.212 MB / 418.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2025, allocations: 8.031 kB / 418.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.2027, allocations: 115.6 kB / 418.5 MB, free: 17.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.2031, allocations: 0.5498 MB / 419.1 MB, free: 16.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.2032, allocations: 66.38 kB / 419.2 MB, free: 16.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2033, allocations: 92.38 kB / 419.3 MB, free: 16.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.2045, allocations: 0.8588 MB / 420.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.2046, allocations: 0 / 420.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/0.2046, allocations: 36 kB / 420.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2046, allocations: 27.98 kB / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.206, allocations: 0.8707 MB / 421 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.2101, allocations: 3.277 MB / 424.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000889/0.211, allocations: 0.6795 MB / 425 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/0.2115, allocations: 443.1 kB / 425.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.77e-05/0.2116, allocations: 12.56 kB / 425.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.2116, allocations: 39.12 kB / 425.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 1.703e-06/0.2116, allocations: 4 kB / 425.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.00349/0.2151, allocations: 2.318 MB / 427.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.12e-05/0.2152, allocations: 60.06 kB / 427.9 MB, free: 7.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.2157, allocations: 0.6057 MB / 428.5 MB, free: 6.938 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.2157, allocations: 37.7 kB / 428.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.2159, allocations: 443.2 kB / 428.9 MB, free: 6.453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.216, allocations: 264.2 kB / 429.2 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.2161, allocations: 19.94 kB / 429.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.456e-05/0.2162, allocations: 386.8 kB / 429.6 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005376/0.2167, allocations: 333.9 kB / 429.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005727/0.2173, allocations: 488.5 kB / 430.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.2184, allocations: 0.8204 MB / 431.2 MB, free: 4.062 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2184, allocations: 4 kB / 431.2 MB, free: 4.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001679/0.2201, allocations: 1.138 MB / 432.4 MB, free: 2.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.2201, allocations: 8.062 kB / 432.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2201, allocations: 4 kB / 432.4 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004668/0.2206, allocations: 184.6 kB / 432.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007628/0.2214, allocations: 207.8 kB / 432.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.2241, allocations: 2.644 MB / 435.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005611/0.2246, allocations: 43.97 kB / 435.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.71e-05/0.2247, allocations: 32 kB / 435.5 MB, free: 15.66 MB / 314.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.000308/0.225, allocations: 233.6 kB / 435.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.2252, allocations: 83.05 kB / 435.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.2253, allocations: 95.27 kB / 435.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.2253, allocations: 11.94 kB / 435.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.2253, allocations: 4 kB / 435.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2254, allocations: 3.984 kB / 435.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009588/0.2263, allocations: 0.8768 MB / 436.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2263, allocations: 0 / 436.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007107/0.227, allocations: 151.8 kB / 436.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005004/0.2276, allocations: 180.6 kB / 437.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.2276, allocations: 23.98 kB / 437.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/0.2308, allocations: 2.657 MB / 439.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2308, allocations: 0 / 439.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.2333, allocations: 1.474 MB / 441.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.2335, allocations: 148.1 kB / 441.4 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.2337, allocations: 20 kB / 441.4 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005695/0.2342, allocations: 55.97 kB / 441.5 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.2344, allocations: 56.56 kB / 441.5 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.447e-05/0.2345, allocations: 23.98 kB / 441.5 MB, free: 9.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004882/0.235, allocations: 423 kB / 442 MB, free: 8.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.235, allocations: 0 / 442 MB, free: 8.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007515/0.2357, allocations: 248 kB / 442.2 MB, free: 8.691 MB / 314.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.0002119/0.2359, allocations: 140.4 kB / 442.3 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.238, allocations: 1.057 MB / 443.4 MB, free: 7.473 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.238, allocations: 0.8125 kB / 443.4 MB, free: 7.473 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.2392, allocations: 0.6504 MB / 444 MB, free: 6.809 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.2399, allocations: 139.9 kB / 444.2 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.2431, allocations: 2.528 MB / 446.7 MB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.2436, allocations: 0.9778 MB / 447.7 MB, free: 3.113 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003732/0.244, allocations: 93.47 kB / 447.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.2442, allocations: 55.42 kB / 447.8 MB, free: 2.965 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2442, allocations: 0 / 447.8 MB, free: 2.965 MB / 314.7 MB Notification: Performance of Templates: time 0.01609/0.2603, allocations: 10.39 MB / 458.2 MB, free: 8.617 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches