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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001885/0.001885, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00225/0.00225, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2496, allocations: 52.18 MB / 422.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004427/0.254, allocations: 2.965 MB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2553, allocations: 0.744 MB / 426.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.2554, allocations: 7.938 kB / 426.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.2556, allocations: 43.52 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.2558, allocations: 111.2 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.2561, allocations: 111.8 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.2566, allocations: 422.4 kB / 427 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2568, allocations: 91.67 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.257, allocations: 159.4 kB / 427.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2572, allocations: 167.3 kB / 427.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.2573, allocations: 40 kB / 427.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.2574, allocations: 44 kB / 427.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.496e-05/0.2574, allocations: 79.69 kB / 427.6 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.2576, allocations: 179.1 kB / 427.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004948/0.2581, allocations: 454.7 kB / 428.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2581, allocations: 0 / 428.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2581, allocations: 0 / 428.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2581, allocations: 0 / 428.2 MB, free: 9.008 MB / 334.1 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.001313/0.2594, allocations: 0.6092 MB / 428.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.2595, allocations: 8.031 kB / 428.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.607e-05/0.2596, allocations: 66.72 kB / 428.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.2596, allocations: 32.75 kB / 428.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.2601, allocations: 245.8 kB / 429.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2601, allocations: 16.88 kB / 429.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.175e-05/0.2601, allocations: 28.36 kB / 429.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007236/0.2608, allocations: 330.8 kB / 429.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2609, allocations: 0 / 429.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.2609, allocations: 12 kB / 429.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.2609, allocations: 8 kB / 429.6 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008023/0.2617, allocations: 285.8 kB / 429.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.2637, allocations: 1.108 MB / 431 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008178/0.2645, allocations: 242.6 kB / 431.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.2648, allocations: 100.8 kB / 431.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.2648, allocations: 0 / 431.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004749/0.2653, allocations: 189 kB / 431.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.2653, allocations: 3.938 kB / 431.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002197/0.2675, allocations: 0.5876 MB / 432.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.2676, allocations: 106.8 kB / 432.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.2679, allocations: 281.8 kB / 432.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.2679, allocations: 25.7 kB / 432.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.2681, allocations: 212 kB / 432.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.2681, allocations: 39.67 kB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.2682, allocations: 57.89 kB / 432.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2684, allocations: 334.8 kB / 433.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.2687, allocations: 100.4 kB / 433.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.2691, allocations: 206.9 kB / 433.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007321/0.2699, allocations: 311.2 kB / 433.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2699, allocations: 0 / 433.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001265/0.2711, allocations: 475.7 kB / 434.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.2712, allocations: 33.7 kB / 434.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2712, allocations: 8.047 kB / 434.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003947/0.2716, allocations: 80.81 kB / 434.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2718, allocations: 55.89 kB / 434.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002736/0.2745, allocations: 1.89 MB / 436.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/0.2749, allocations: 51.81 kB / 436.3 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.2749, allocations: 12.16 kB / 436.3 MB, free: 468 kB / 334.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.2751, allocations: 157.8 kB / 436.5 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.2751, allocations: 27.8 kB / 436.5 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.323e-05/0.2752, allocations: 25.77 kB / 436.5 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2752, allocations: 4 kB / 436.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.2752, allocations: 0 / 436.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2752, allocations: 0 / 436.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.2755, allocations: 296.5 kB / 436.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2755, allocations: 0 / 436.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.2756, allocations: 28.09 kB / 436.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/0.2759, allocations: 80.8 kB / 436.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2759, allocations: 0 / 436.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.2783, allocations: 1.718 MB / 438.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2783, allocations: 0 / 438.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.2793, allocations: 361.6 kB / 439 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.2794, allocations: 35.84 kB / 439 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.2794, allocations: 0 / 439 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.2797, allocations: 31.97 kB / 439 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.303e-05/0.2797, allocations: 28.08 kB / 439.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.2798, allocations: 11.94 kB / 439.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.28, allocations: 201.2 kB / 439.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.28, allocations: 0 / 439.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.2804, allocations: 91.78 kB / 439.4 MB, free: 13.19 MB / 350.1 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001418/0.2818, allocations: 0.9007 MB / 440.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.2828, allocations: 422 kB / 440.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2828, allocations: 0 / 440.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004798/0.2833, allocations: 238.4 kB / 440.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.2836, allocations: 48.91 kB / 441 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005232/0.2888, allocations: 3.103 MB / 444.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.2892, allocations: 0.7558 MB / 444.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.2893, allocations: 26.28 kB / 444.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.2894, allocations: 83.41 kB / 444.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2894, allocations: 0 / 444.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/0.3277, allocations: 7.073 MB / 452 MB, free: 488 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.84, allocations: 14.53 kB / 452 MB, free: 476 kB / 350.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.149044845951721]