Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008352/0.0008353, allocations: 178.6 kB / 17.04 MB, free: 5.109 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.192/1.192, allocations: 223.3 MB / 241 MB, free: 10.09 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.0007124/0.0007125, allocations: 100.6 kB / 292.2 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002248/0.0002248, allocations: 4 kB / 351.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2028, allocations: 50.42 MB / 402.2 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.001957/0.2048, allocations: 2.488 MB / 404.7 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007382/0.2056, allocations: 0.6904 MB / 405.4 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.2057, allocations: 11.94 kB / 405.4 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.2058, allocations: 35.75 kB / 405.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.2059, allocations: 82.22 kB / 405.5 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001907/0.2061, allocations: 75.91 kB / 405.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.2064, allocations: 370.5 kB / 406 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.2065, allocations: 90.41 kB / 406 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2066, allocations: 126.5 kB / 406.2 MB, free: 28.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.2068, allocations: 143.4 kB / 406.3 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.2068, allocations: 20 kB / 406.3 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.087e-05/0.2069, allocations: 16 kB / 406.3 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.2069, allocations: 55.7 kB / 406.4 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.316e-05/0.207, allocations: 85.52 kB / 406.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.2072, allocations: 344.5 kB / 406.8 MB, free: 27.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2072, allocations: 0 / 406.8 MB, free: 27.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2072, allocations: 2.969 kB / 406.8 MB, free: 27.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2072, allocations: 3.938 kB / 406.8 MB, free: 27.93 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009808/0.2082, allocations: 0.6457 MB / 407.5 MB, free: 27.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.2082, allocations: 12.03 kB / 407.5 MB, free: 27.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.2083, allocations: 31.62 kB / 407.5 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.2085, allocations: 298.4 kB / 407.8 MB, free: 26.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2086, allocations: 16.56 kB / 407.8 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.2086, allocations: 24 kB / 407.8 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005892/0.2092, allocations: 343.6 kB / 408.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2092, allocations: 0 / 408.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.2092, allocations: 15.95 kB / 408.2 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.2093, allocations: 4 kB / 408.2 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006878/0.2099, allocations: 310.1 kB / 408.5 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.2114, allocations: 1.189 MB / 409.7 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007785/0.2122, allocations: 286.5 kB / 410 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.2125, allocations: 120.8 kB / 410.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2125, allocations: 0 / 410.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004357/0.2129, allocations: 194.1 kB / 410.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.704e-06/0.213, allocations: 0 / 410.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.00206/0.215, allocations: 0.7422 MB / 411 MB, free: 23.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.2151, allocations: 114.8 kB / 411.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.2153, allocations: 274.7 kB / 411.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.2153, allocations: 29.7 kB / 411.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.2154, allocations: 199.5 kB / 411.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.2154, allocations: 43.45 kB / 411.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.125e-05/0.2154, allocations: 4 kB / 411.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.2155, allocations: 334.8 kB / 412 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.2158, allocations: 124.3 kB / 412.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.2162, allocations: 210.5 kB / 412.3 MB, free: 22.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.2165, allocations: 164.4 kB / 412.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2165, allocations: 0 / 412.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00104/0.2175, allocations: 0.5074 MB / 413 MB, free: 21.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.2176, allocations: 33.7 kB / 413 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.2176, allocations: 4 kB / 413 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003144/0.2179, allocations: 88.86 kB / 413.1 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.2181, allocations: 59.91 kB / 413.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.22, allocations: 1.826 MB / 415 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.2203, allocations: 59.66 kB / 415.1 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.2203, allocations: 12.11 kB / 415.1 MB, free: 19.17 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: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.2204, allocations: 160.2 kB / 415.2 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.2205, allocations: 23.81 kB / 415.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/0.2205, allocations: 29.83 kB / 415.3 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2205, allocations: 0 / 415.3 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.2205, allocations: 3.938 kB / 415.3 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2205, allocations: 0 / 415.3 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.2207, allocations: 329.3 kB / 415.6 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2207, allocations: 0 / 415.6 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.2209, allocations: 31.97 kB / 415.6 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002311/0.2211, allocations: 84.8 kB / 415.7 MB, free: 18.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.2211, allocations: 4 kB / 415.7 MB, free: 18.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.2227, allocations: 1.706 MB / 417.4 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2227, allocations: 4 kB / 417.4 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.2236, allocations: 409.5 kB / 417.8 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.2237, allocations: 108.8 kB / 417.9 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.2237, allocations: 4 kB / 417.9 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.2239, allocations: 47.86 kB / 418 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.224, allocations: 19.97 kB / 418 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.224, allocations: 7.984 kB / 418 MB, free: 15.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.2242, allocations: 198 kB / 418.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2242, allocations: 0 / 418.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000308/0.2245, allocations: 83.84 kB / 418.3 MB, free: 15.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 9.808e-05/0.2246, allocations: 104.2 kB / 418.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008226/0.2254, allocations: 457.8 kB / 418.8 MB, free: 15.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2254, allocations: 4 kB / 418.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003933/0.2258, allocations: 243.2 kB / 419.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.2261, allocations: 47.33 kB / 419.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008178/0.227, allocations: 0.6085 MB / 419.7 MB, free: 14.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.2271, allocations: 0.756 MB / 420.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.528e-05/0.2272, allocations: 19.44 kB / 420.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2272, allocations: 0 / 420.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of Templates: time 0.00539/0.2326, allocations: 4.71 MB / 425.2 MB, free: 8.688 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches