Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001912/0.001912, allocations: 111.1 kB / 20.44 MB, free: 1.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002873/0.002873, allocations: 213 kB / 23.73 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 68.12 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2528, allocations: 53.41 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004424/0.2572, allocations: 2.751 MB / 433.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.2586, allocations: 0.7651 MB / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.2588, allocations: 7.938 kB / 434.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.2589, allocations: 51.5 kB / 434.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.2591, allocations: 99.12 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.2595, allocations: 123.7 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.2599, allocations: 414.3 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.2602, allocations: 75.69 kB / 435.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000265/0.2604, allocations: 167.4 kB / 435.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.2606, allocations: 147.2 kB / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.939e-05/0.2607, allocations: 43.94 kB / 435.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.046e-05/0.2608, allocations: 36 kB / 435.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.2609, allocations: 75.77 kB / 435.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.261, allocations: 147.4 kB / 436 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.2615, allocations: 446.2 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2615, allocations: 8 kB / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2615, allocations: 0 / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2615, allocations: 0 / 436.5 MB, free: 1.125 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001021/0.2626, allocations: 0.5567 MB / 437 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.2626, allocations: 15.98 kB / 437 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.447e-05/0.2627, allocations: 62.73 kB / 437.1 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.2629, allocations: 48.69 kB / 437.1 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.2633, allocations: 223.1 kB / 437.4 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.2633, allocations: 16.88 kB / 437.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/0.2634, allocations: 24.38 kB / 437.4 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.2639, allocations: 347.2 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2639, allocations: 0 / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.264, allocations: 16 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.264, allocations: 4 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.2644, allocations: 205.8 kB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.2662, allocations: 1.043 MB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.2667, allocations: 189.8 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.267, allocations: 132.2 kB / 439.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.267, allocations: 3.984 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.2674, allocations: 226 kB / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.2674, allocations: 0 / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001385/0.2688, allocations: 441.9 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/0.2689, allocations: 132.5 kB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.2692, allocations: 249.1 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.2692, allocations: 33.69 kB / 440.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.2693, allocations: 172.6 kB / 440.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.2694, allocations: 75.36 kB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.925e-05/0.2695, allocations: 49.7 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.2697, allocations: 334.8 kB / 441 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.2699, allocations: 71.97 kB / 441.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.2701, allocations: 173.3 kB / 441.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.2705, allocations: 176 kB / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2705, allocations: 0 / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005294/0.271, allocations: 290.1 kB / 441.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.271, allocations: 4 kB / 441.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.271, allocations: 4 kB / 441.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/0.2714, allocations: 88.8 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.2715, allocations: 36.02 kB / 441.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.274, allocations: 2.016 MB / 443.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.2742, allocations: 35.92 kB / 443.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.2743, allocations: 12 kB / 443.9 MB, free: 9.246 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.2745, allocations: 153.8 kB / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.2745, allocations: 27.8 kB / 444.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.211e-05/0.2746, allocations: 30.27 kB / 444.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2746, allocations: 4 kB / 444.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2746, allocations: 0 / 444.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2746, allocations: 0 / 444.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009811/0.2756, allocations: 0.7129 MB / 444.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2756, allocations: 0 / 444.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.2757, allocations: 23.97 kB / 444.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000248/0.2759, allocations: 84.8 kB / 444.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.2759, allocations: 8.109 kB / 444.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002383/0.2783, allocations: 2.016 MB / 446.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.2783, allocations: 3.984 kB / 446.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007034/0.279, allocations: 448.7 kB / 447.4 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.2791, allocations: 47.81 kB / 447.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.2792, allocations: 7.938 kB / 447.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.2794, allocations: 24.11 kB / 447.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.2795, allocations: 31.94 kB / 447.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.2795, allocations: 8 kB / 447.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.2797, allocations: 176.5 kB / 447.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2797, allocations: 0 / 447.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004447/0.2801, allocations: 95.83 kB / 447.8 MB, free: 5.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001043/0.2811, allocations: 0.9935 MB / 448.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000687/0.2818, allocations: 350.3 kB / 449.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.2818, allocations: 0 / 449.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.2823, allocations: 254.6 kB / 449.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.2827, allocations: 71.33 kB / 449.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.2865, allocations: 2.773 MB / 452.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001644/0.2867, allocations: 151.8 kB / 452.3 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.714e-05/0.2868, allocations: 18.3 kB / 452.4 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2869, allocations: 83.41 kB / 452.4 MB, free: 324 kB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2869, allocations: 0 / 452.4 MB, free: 324 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04314/0.33, allocations: 8.144 MB / 460.6 MB, free: 8.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.79, allocations: 10.34 kB / 460.6 MB, free: 8.316 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039604 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[5050]=2.000000 File[831821]=0.236304 Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 658] "" Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:time,idealTriac.capacitor.v [Calling sys.exit(0), Time elapsed: 68.95371151575819]