Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001573/0.001573, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000756/0.0007564, allocations: 109.3 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.0002289, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2315, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.002328/0.2339, allocations: 2.505 MB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.235, allocations: 0.7237 MB / 410.7 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2352, allocations: 4 kB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.2353, allocations: 39.69 kB / 410.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.2355, allocations: 79.38 kB / 410.9 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.2358, allocations: 75.84 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002742/0.2361, allocations: 370.4 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.2363, allocations: 91.8 kB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.2364, allocations: 127.5 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.2366, allocations: 139.4 kB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.2366, allocations: 16 kB / 411.7 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.444e-05/0.2367, allocations: 27.22 kB / 411.7 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.2367, allocations: 55.75 kB / 411.7 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.583e-05/0.2368, allocations: 81.52 kB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.237, allocations: 348 kB / 412.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.237, allocations: 0 / 412.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2371, allocations: 0 / 412.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.2371, allocations: 0 / 412.2 MB, free: 23.15 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.001053/0.2381, allocations: 0.6443 MB / 412.8 MB, free: 22.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2382, allocations: 8.031 kB / 412.8 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.499e-05/0.2382, allocations: 31.62 kB / 412.8 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.2385, allocations: 298.4 kB / 413.1 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.2386, allocations: 24.5 kB / 413.2 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.2386, allocations: 24 kB / 413.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006261/0.2392, allocations: 335.6 kB / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.2393, allocations: 0 / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.2393, allocations: 12 kB / 413.5 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.2393, allocations: 8 kB / 413.5 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007616/0.2401, allocations: 318 kB / 413.8 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.2417, allocations: 1.189 MB / 415 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000778/0.2425, allocations: 278.6 kB / 415.3 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.2428, allocations: 120.8 kB / 415.4 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.2428, allocations: 4 kB / 415.4 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.2433, allocations: 197.8 kB / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.512e-06/0.2433, allocations: 0 / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002075/0.2454, allocations: 0.7405 MB / 416.4 MB, free: 18.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2454, allocations: 102.8 kB / 416.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000227/0.2456, allocations: 274.7 kB / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.2457, allocations: 37.69 kB / 416.8 MB, free: 18.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.2458, allocations: 199.5 kB / 417 MB, free: 18.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.2458, allocations: 47.45 kB / 417 MB, free: 18.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.2458, allocations: 4 kB / 417 MB, free: 18.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.427e-05/0.2459, allocations: 330.8 kB / 417.3 MB, free: 17.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.2462, allocations: 124.4 kB / 417.4 MB, free: 17.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003373/0.2465, allocations: 220.8 kB / 417.7 MB, free: 17.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.2469, allocations: 157.7 kB / 417.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2469, allocations: 0 / 417.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001095/0.248, allocations: 0.506 MB / 418.3 MB, free: 16.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.248, allocations: 37.7 kB / 418.4 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.248, allocations: 0 / 418.4 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.2484, allocations: 92.86 kB / 418.5 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.2486, allocations: 47.91 kB / 418.5 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.2506, allocations: 1.826 MB / 420.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.251, allocations: 79.77 kB / 420.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.251, allocations: 8 kB / 420.4 MB, free: 14.39 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.0001561/0.2511, allocations: 146.7 kB / 420.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.2512, allocations: 24.02 kB / 420.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.059e-05/0.2512, allocations: 29.83 kB / 420.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2512, allocations: 7.938 kB / 420.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2512, allocations: 3.953 kB / 420.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.2513, allocations: 0 / 420.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.2515, allocations: 329.3 kB / 420.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2515, allocations: 0 / 420.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.2517, allocations: 35.91 kB / 421 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002623/0.2519, allocations: 80.81 kB / 421.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.2519, allocations: 7.984 kB / 421.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/0.2537, allocations: 1.706 MB / 422.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2537, allocations: 7.984 kB / 422.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.2546, allocations: 405.4 kB / 423.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.2547, allocations: 104.8 kB / 423.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.2547, allocations: 8 kB / 423.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.255, allocations: 43.95 kB / 423.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.2551, allocations: 19.97 kB / 423.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.2551, allocations: 4 kB / 423.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001617/0.2552, allocations: 202 kB / 423.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2553, allocations: 0 / 423.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.2556, allocations: 71.84 kB / 423.6 MB, free: 10.95 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 0.0001776/0.2558, allocations: 107.2 kB / 423.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008954/0.2567, allocations: 458.3 kB / 424.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2567, allocations: 4.125 kB / 424.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.2571, allocations: 246.5 kB / 424.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2575, allocations: 56.09 kB / 424.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008494/0.2583, allocations: 0.594 MB / 425.1 MB, free: 9.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.2585, allocations: 0.756 MB / 425.8 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.513e-05/0.2586, allocations: 23.44 kB / 425.8 MB, free: 8.617 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2586, allocations: 4 kB / 425.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of Templates: time 0.005107/0.2637, allocations: 4.721 MB / 430.6 MB, free: 3.918 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches