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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009881/0.0009881, allocations: 88.25 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009707/0.0009709, allocations: 178.1 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003066, allocations: 8 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1503, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007234/0.1576, allocations: 5.594 MB / 357.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.1619, allocations: 1.506 MB / 358.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006899/0.1626, allocations: 19.94 kB / 358.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.163, allocations: 123 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007254/0.1638, allocations: 249.9 kB / 359.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.1648, allocations: 359.6 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.1661, allocations: 1.305 MB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006059/0.1668, allocations: 366.9 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006254/0.1674, allocations: 410.4 kB / 361.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.168, allocations: 0.4899 MB / 362.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.1682, allocations: 60 kB / 362.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.1684, allocations: 91.97 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.1686, allocations: 195.1 kB / 362.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005298/0.1692, allocations: 0.5264 MB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001322/0.1705, allocations: 1.421 MB / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1705, allocations: 0 / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1705, allocations: 0 / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.1706, allocations: 0 / 364.5 MB, free: 6.953 MB / 302.1 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.002914/0.1735, allocations: 1.221 MB / 365.7 MB, free: 5.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.1735, allocations: 8.031 kB / 365.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.1738, allocations: 115.6 kB / 365.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008851/0.1747, allocations: 0.5537 MB / 366.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.076e-05/0.1748, allocations: 62.38 kB / 366.5 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.175, allocations: 88.38 kB / 366.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.1769, allocations: 0.8666 MB / 367.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1769, allocations: 7.938 kB / 367.4 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.1771, allocations: 36 kB / 367.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.1771, allocations: 23.98 kB / 367.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.179, allocations: 0.8785 MB / 368.4 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3037/0.4827, allocations: 3.271 MB / 371.6 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.4846, allocations: 0.6799 MB / 372.3 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009673/0.4856, allocations: 443.5 kB / 372.7 MB, free: 23.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.887e-05/0.4857, allocations: 13.44 kB / 372.8 MB, free: 23.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.66e-05/0.4857, allocations: 46.36 kB / 372.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 5.65e-06/0.4858, allocations: 0 / 372.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.006954/0.4927, allocations: 2.327 MB / 375.1 MB, free: 22.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.4928, allocations: 59.55 kB / 375.2 MB, free: 22.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.494, allocations: 0.6078 MB / 375.8 MB, free: 22.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.163e-05/0.494, allocations: 38.7 kB / 375.8 MB, free: 22.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004372/0.4945, allocations: 445.1 kB / 376.3 MB, free: 22.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.4948, allocations: 259.4 kB / 376.5 MB, free: 21.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.4949, allocations: 67.78 kB / 376.6 MB, free: 21.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.4952, allocations: 397 kB / 377 MB, free: 21.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008288/0.496, allocations: 339.2 kB / 377.3 MB, free: 21.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008854/0.4969, allocations: 487.3 kB / 377.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.4985, allocations: 0.8271 MB / 378.6 MB, free: 20.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.4985, allocations: 1.062 kB / 378.6 MB, free: 20.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002846/0.5013, allocations: 1.141 MB / 379.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.5014, allocations: 6.875 kB / 379.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.5014, allocations: 4.281 kB / 379.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007214/0.5022, allocations: 190.8 kB / 379.9 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009484/0.5031, allocations: 205.6 kB / 380.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/0.5072, allocations: 2.64 MB / 382.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008351/0.508, allocations: 38.73 kB / 382.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-05/0.5081, allocations: 38.73 kB / 382.9 MB, free: 18 MB / 302.1 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.0006563/0.5088, allocations: 234.2 kB / 383.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.509, allocations: 83 kB / 383.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.5092, allocations: 91.58 kB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.5093, allocations: 10.83 kB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-05/0.5093, allocations: 4.391 kB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.5093, allocations: 2.812 kB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.511, allocations: 0.8844 MB / 384.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.5111, allocations: 5.875 kB / 384.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000798/0.5119, allocations: 149.4 kB / 384.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006257/0.5125, allocations: 186.8 kB / 384.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-05/0.5126, allocations: 22.27 kB / 384.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003595/0.5162, allocations: 2.649 MB / 387.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.5162, allocations: 8.203 kB / 387.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.5194, allocations: 1.459 MB / 388.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.5197, allocations: 159.8 kB / 388.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.5198, allocations: 21.78 kB / 388.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.5205, allocations: 61.61 kB / 388.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.5206, allocations: 52.09 kB / 388.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.735e-05/0.5207, allocations: 24.81 kB / 388.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007743/0.5215, allocations: 426.1 kB / 389.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5215, allocations: 1.094 kB / 389.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001594/0.5231, allocations: 243.1 kB / 389.6 MB, free: 14.03 MB / 302.1 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.0004639/0.5236, allocations: 141.9 kB / 389.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003143/0.5267, allocations: 1.062 MB / 390.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5268, allocations: 1.469 kB / 390.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.5284, allocations: 0.6505 MB / 391.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5295, allocations: 142.9 kB / 391.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.5344, allocations: 2.524 MB / 394.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009727/0.5354, allocations: 0.9821 MB / 395.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006582/0.5361, allocations: 89.91 kB / 395.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002418/0.5363, allocations: 57.59 kB / 395.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5363, allocations: 3.938 kB / 395.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Templates: time 0.02277/0.5591, allocations: 10.38 MB / 405.6 MB, free: 2.062 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches