Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 60.05 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2823, allocations: 50.54 MB / 408.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator): time 0.003514/0.2859, allocations: 2.619 MB / 411.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2871, allocations: 0.6973 MB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2872, allocations: 11.94 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.2874, allocations: 43.58 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.2877, allocations: 83.31 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.2879, allocations: 87.83 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003583/0.2882, allocations: 314.6 kB / 412.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.2885, allocations: 88.95 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.2886, allocations: 115.6 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2888, allocations: 123.5 kB / 413 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.258e-05/0.2889, allocations: 28 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.007e-05/0.2889, allocations: 24 kB / 413 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.256e-05/0.289, allocations: 55.72 kB / 413.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2891, allocations: 135.3 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.2895, allocations: 289.9 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2895, allocations: 0 / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.049e-06/0.2895, allocations: 4 kB / 413.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.2895, allocations: 4 kB / 413.5 MB, free: 12.94 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.00095/0.2905, allocations: 0.5613 MB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.2905, allocations: 12.03 kB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.995e-05/0.2906, allocations: 62.67 kB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.365e-05/0.2906, allocations: 28.75 kB / 414.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.291, allocations: 255.9 kB / 414.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.291, allocations: 16.94 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.2911, allocations: 24.38 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.2915, allocations: 225 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2915, allocations: 3.984 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.2916, allocations: 12 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2916, allocations: 4 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.292, allocations: 190.1 kB / 414.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.2935, allocations: 0.9009 MB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.2941, allocations: 230.5 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.2944, allocations: 120.8 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.2945, allocations: 0 / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.2945, allocations: 34.56 kB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.607e-06/0.2945, allocations: 4 kB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001775/0.2963, allocations: 0.5499 MB / 416.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.2963, allocations: 59.34 kB / 416.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.2965, allocations: 227 kB / 417 MB, free: 9.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2966, allocations: 33.7 kB / 417 MB, free: 9.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.2967, allocations: 168.1 kB / 417.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.2967, allocations: 55.55 kB / 417.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-05/0.2968, allocations: 41.7 kB / 417.3 MB, free: 8.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2969, allocations: 330.8 kB / 417.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.2971, allocations: 68.83 kB / 417.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.2973, allocations: 121.8 kB / 417.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.2976, allocations: 180.1 kB / 418 MB, free: 8.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.2977, allocations: 4 kB / 418 MB, free: 8.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008163/0.2985, allocations: 344.9 kB / 418.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2985, allocations: 8 kB / 418.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2985, allocations: 0 / 418.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003709/0.2989, allocations: 80.8 kB / 418.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.2991, allocations: 51.94 kB / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.3018, allocations: 2.017 MB / 420.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.302, allocations: 15.89 kB / 420.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.302, allocations: 12 kB / 420.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001424/0.3022, allocations: 144 kB / 420.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001059/0.3023, allocations: 102 kB / 420.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001727/0.3025, allocations: 145.8 kB / 420.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.092e-06/0.3025, allocations: 4 kB / 420.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000327/0.3028, allocations: 224.9 kB / 421.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.3028, allocations: 8 kB / 421.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-06/0.3029, allocations: 0 / 421.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.707e-05/0.303, allocations: 20.84 kB / 421.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3031, allocations: 52.11 kB / 421.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.3042, allocations: 1.411 MB / 422.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3043, allocations: 19.92 kB / 422.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.3043, allocations: 12 kB / 422.6 MB, free: 3.152 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (21): * Single equations (assignments): 20 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.3044, allocations: 188.2 kB / 422.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.872e-05/0.3045, allocations: 19.86 kB / 422.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.3046, allocations: 29.45 kB / 422.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3046, allocations: 4 kB / 422.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3046, allocations: 0 / 422.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3046, allocations: 0 / 422.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.3057, allocations: 0.6281 MB / 423.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3057, allocations: 0 / 423.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.3058, allocations: 23.98 kB / 423.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002564/0.3061, allocations: 80.8 kB / 423.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.3061, allocations: 0 / 423.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.3085, allocations: 1.927 MB / 425.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3085, allocations: 0 / 425.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008787/0.3094, allocations: 443.7 kB / 425.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.3094, allocations: 96.98 kB / 426 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.3095, allocations: 0 / 426 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.3096, allocations: 19.98 kB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.783e-05/0.3097, allocations: 12.11 kB / 426.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.3097, allocations: 8.062 kB / 426.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.3099, allocations: 176.5 kB / 426.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3099, allocations: 3.938 kB / 426.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005258/0.3104, allocations: 115.7 kB / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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 (11): * Single equations (assignments): 10 * 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): 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.001209/0.3116, allocations: 0.9669 MB / 427.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.3127, allocations: 0.5323 MB / 427.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3127, allocations: 4.688 kB / 427.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.313, allocations: 210 kB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.3134, allocations: 43.98 kB / 428.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.3172, allocations: 2.645 MB / 430.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3175, allocations: 0.7402 MB / 431.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.224e-05/0.3176, allocations: 29.92 kB / 431.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.57e-05/0.3178, allocations: 59.42 kB / 431.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3178, allocations: 0 / 431.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.345, allocations: 5.437 MB / 437 MB, free: 4.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.61, allocations: 7.594 kB / 437 MB, free: 4.441 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Multivibrator/Multivibrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable opAmp.out.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv failed! " Variables in the reference:time,c.v,opAmp.out.v,opAmp.out.i Variables in the result:time,c.v