Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 180.3 kB / 17.04 MB, free: 4.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007815/0.0007815, allocations: 101.3 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002691, allocations: 8 kB / 351.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2173, allocations: 50.41 MB / 402.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.003897/0.2213, allocations: 5.264 MB / 407.5 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.2236, allocations: 1.479 MB / 408.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004569/0.2241, allocations: 16 kB / 409 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.2244, allocations: 123 kB / 409.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004235/0.2248, allocations: 245.9 kB / 409.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.2254, allocations: 263.6 kB / 409.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00072/0.2261, allocations: 1.251 MB / 410.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003499/0.2265, allocations: 308.5 kB / 411.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00032/0.2268, allocations: 398.6 kB / 411.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003729/0.2272, allocations: 485.9 kB / 412 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.551e-05/0.2273, allocations: 56 kB / 412 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.2275, allocations: 91.97 kB / 412.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.877e-05/0.2276, allocations: 183.2 kB / 412.3 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.2277, allocations: 225.1 kB / 412.5 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006326/0.2284, allocations: 1.151 MB / 413.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2284, allocations: 0 / 413.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2284, allocations: 7.938 kB / 413.7 MB, free: 21.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.2284, allocations: 4 kB / 413.7 MB, free: 21.04 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.001943/0.2303, allocations: 1.22 MB / 414.9 MB, free: 19.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2304, allocations: 8.031 kB / 414.9 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.2305, allocations: 114.7 kB / 415 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.231, allocations: 0.5218 MB / 415.6 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.2311, allocations: 66 kB / 415.6 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.2312, allocations: 91.91 kB / 415.7 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.2325, allocations: 0.8546 MB / 416.6 MB, free: 18.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.2325, allocations: 0 / 416.6 MB, free: 18.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.578e-05/0.2326, allocations: 36 kB / 416.6 MB, free: 18.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.2326, allocations: 23.95 kB / 416.6 MB, free: 18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.234, allocations: 0.8862 MB / 417.5 MB, free: 17.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004431/0.2384, allocations: 3.277 MB / 420.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009411/0.2394, allocations: 0.6774 MB / 421.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.24, allocations: 443.5 kB / 421.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.24, allocations: 12.55 kB / 421.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2401, allocations: 47.06 kB / 422 MB, free: 12.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 2.454e-06/0.2401, allocations: 0 / 422 MB, free: 12.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003759/0.2438, allocations: 2.318 MB / 424.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.2439, allocations: 64 kB / 424.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.2445, allocations: 0.6056 MB / 424.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.2445, allocations: 41.7 kB / 425 MB, free: 9.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.2447, allocations: 443.2 kB / 425.4 MB, free: 8.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2449, allocations: 256.3 kB / 425.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.2449, allocations: 20 kB / 425.7 MB, free: 8.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.245, allocations: 386.7 kB / 426.1 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005504/0.2456, allocations: 341.8 kB / 426.4 MB, free: 7.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006068/0.2462, allocations: 485.4 kB / 426.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006079/0.2468, allocations: 390.9 kB / 427.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2468, allocations: 0 / 427.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001814/0.2486, allocations: 1.142 MB / 428.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2487, allocations: 8 kB / 428.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2487, allocations: 4 kB / 428.4 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005116/0.2492, allocations: 183.3 kB / 428.6 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007965/0.25, allocations: 203.8 kB / 428.8 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/0.2527, allocations: 2.649 MB / 431.4 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006429/0.2534, allocations: 40.03 kB / 431.5 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.2535, allocations: 35.98 kB / 431.5 MB, free: 2.688 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003075/0.2538, allocations: 233.7 kB / 431.7 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.864e-05/0.2539, allocations: 79.06 kB / 431.8 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.254, allocations: 95.27 kB / 431.9 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.254, allocations: 8 kB / 431.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.254, allocations: 0 / 431.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.254, allocations: 11.94 kB / 431.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007544/0.2548, allocations: 0.8729 MB / 432.8 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2548, allocations: 3.984 kB / 432.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.2555, allocations: 151.8 kB / 433 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004507/0.2559, allocations: 184.6 kB / 433.1 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.631e-05/0.256, allocations: 23.98 kB / 433.2 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003151/0.2592, allocations: 2.646 MB / 435.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2592, allocations: 4 kB / 435.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.2617, allocations: 1.451 MB / 437.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.2619, allocations: 152.2 kB / 437.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-05/0.262, allocations: 27.88 kB / 437.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.2626, allocations: 59.95 kB / 437.5 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2628, allocations: 56.58 kB / 437.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.527e-05/0.2628, allocations: 19.98 kB / 437.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000483/0.2633, allocations: 423.1 kB / 438 MB, free: 11.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2633, allocations: 0 / 438 MB, free: 11.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007243/0.2641, allocations: 240.2 kB / 438.2 MB, free: 11.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002292/0.2643, allocations: 131.7 kB / 438.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.2664, allocations: 1.068 MB / 439.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.2665, allocations: 4 kB / 439.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.2677, allocations: 0.6396 MB / 440.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007234/0.2685, allocations: 138.9 kB / 440.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.2717, allocations: 2.464 MB / 442.7 MB, free: 7.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.2722, allocations: 0.9817 MB / 443.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.2725, allocations: 67.41 kB / 443.7 MB, free: 6.16 MB / 314.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2725, allocations: 0 / 443.7 MB, free: 6.16 MB / 314.7 MB Notification: Performance of Templates: time 0.01755/0.29, allocations: 14.81 MB / 458.5 MB, free: 7.387 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/jenkins1/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