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.001277/0.001277, allocations: 115.1 kB / 17.29 MB, free: 6.219 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.001223/0.001223, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.3/1.3, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.77 kB / 300.8 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1019, allocations: 49.45 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007181/0.1091, allocations: 6.054 MB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.1122, allocations: 1.505 MB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007822/0.113, allocations: 19.94 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005168/0.1135, allocations: 131 kB / 357.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008488/0.1144, allocations: 249.9 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.1153, allocations: 359.6 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.1169, allocations: 1.391 MB / 359.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005924/0.1175, allocations: 433.2 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006963/0.1182, allocations: 498.4 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007342/0.119, allocations: 0.568 MB / 361.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002465/0.1192, allocations: 136 kB / 361.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003764/0.1196, allocations: 164 kB / 361.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.1198, allocations: 279.1 kB / 362 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005905/0.1204, allocations: 0.5871 MB / 362.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.1215, allocations: 1.197 MB / 363.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1215, allocations: 0 / 363.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1215, allocations: 0 / 363.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.1215, allocations: 4 kB / 363.8 MB, free: 7.156 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.00242/0.1239, allocations: 1.387 MB / 365.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.124, allocations: 8.031 kB / 365.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.1242, allocations: 119.6 kB / 365.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.1248, allocations: 0.5382 MB / 365.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.072e-05/0.1249, allocations: 66.38 kB / 365.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.125, allocations: 96.28 kB / 366 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.1265, allocations: 0.8549 MB / 366.8 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1266, allocations: 0 / 366.8 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.1267, allocations: 36 kB / 366.9 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.1267, allocations: 20 kB / 366.9 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.1283, allocations: 0.855 MB / 367.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1749/0.3032, allocations: 3.227 MB / 371 MB, free: 24.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3047, allocations: 0.6666 MB / 371.6 MB, free: 24.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007156/0.3055, allocations: 428.4 kB / 372 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.805e-05/0.3055, allocations: 14.81 kB / 372.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.3056, allocations: 45.11 kB / 372.1 MB, free: 24.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.635e-06/0.3056, allocations: 0 / 372.1 MB, free: 24.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004438/0.31, allocations: 2.263 MB / 374.4 MB, free: 23.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.3101, allocations: 58.94 kB / 374.4 MB, free: 23.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006687/0.3107, allocations: 0.6171 MB / 375 MB, free: 23.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.3108, allocations: 37.83 kB / 375.1 MB, free: 23.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.311, allocations: 440.8 kB / 375.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.3112, allocations: 256 kB / 375.8 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.3114, allocations: 147 kB / 375.9 MB, free: 22.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3116, allocations: 384.6 kB / 376.3 MB, free: 22.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/0.3122, allocations: 329.3 kB / 376.6 MB, free: 22.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006582/0.3128, allocations: 470.6 kB / 377.1 MB, free: 21.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.3141, allocations: 0.8001 MB / 377.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3141, allocations: 1.469 kB / 377.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002043/0.3161, allocations: 1.118 MB / 379 MB, free: 20.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3162, allocations: 6.578 kB / 379 MB, free: 20.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3162, allocations: 8.156 kB / 379 MB, free: 20.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.3167, allocations: 196.2 kB / 379.2 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008613/0.3176, allocations: 191.9 kB / 379.4 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003145/0.3208, allocations: 2.888 MB / 382.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006659/0.3214, allocations: 37.31 kB / 382.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.152e-05/0.3215, allocations: 34.11 kB / 382.3 MB, free: 18.54 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.0003907/0.3219, allocations: 245.6 kB / 382.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.3221, allocations: 79.89 kB / 382.6 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.3222, allocations: 95.02 kB / 382.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.3222, allocations: 7.719 kB / 382.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/0.3223, allocations: 6.375 kB / 382.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3223, allocations: 4.375 kB / 382.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.3234, allocations: 0.8903 MB / 383.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3234, allocations: 4.797 kB / 383.7 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007247/0.3241, allocations: 143.6 kB / 383.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004915/0.3246, allocations: 179.7 kB / 384 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.3247, allocations: 19.03 kB / 384 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003043/0.3277, allocations: 2.894 MB / 386.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3278, allocations: 0.6562 kB / 386.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.3301, allocations: 1.429 MB / 388.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.3303, allocations: 148.3 kB / 388.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3304, allocations: 15.66 kB / 388.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006064/0.331, allocations: 57.03 kB / 388.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.3311, allocations: 48.62 kB / 388.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.442e-05/0.3312, allocations: 26.7 kB / 388.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004902/0.3317, allocations: 428.3 kB / 389 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3317, allocations: 0 / 389 MB, free: 14.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008403/0.3325, allocations: 237.2 kB / 389.3 MB, free: 14.36 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.0002176/0.3328, allocations: 148.1 kB / 389.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002332/0.3351, allocations: 1.07 MB / 390.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3351, allocations: 3.391 kB / 390.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.3363, allocations: 0.643 MB / 391.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007705/0.3371, allocations: 141.4 kB / 391.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.3401, allocations: 2.417 MB / 393.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.3405, allocations: 0.9809 MB / 394.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.3408, allocations: 65.97 kB / 394.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3408, allocations: 0 / 394.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Templates: time 0.01524/0.356, allocations: 14.93 MB / 409.6 MB, free: 14.45 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/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